Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Bundle size check #535

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ jobs:
- persist_to_workspace:
root: .
paths: .

size:
executor: main-executor
steps:
- attach_workspace:
at: ~/loona
- run:
name: Check bundle size
command: yarn size
test:
executor: main-executor
steps:
Expand All @@ -55,9 +46,6 @@ workflows:
btd:
jobs:
- install-and-build
- size:
requires:
- install-and-build
- test:
requires:
- install-and-build
Expand Down
2 changes: 2 additions & 0 deletions bundle-test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
22 changes: 22 additions & 0 deletions bundle-test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "bundle-test",
"version": "1.0.0",
"main": "dist/index.js",
"license": "MIT",
"scripts": {
"pretest": "webpack --output=dist/index.js",
"test": "bundlesize"
},
"bundlesize": [
{
"path": "./dist/index.js",
"maxSize": "500 kB",
"compression": "none"
}
],
"devDependencies": {
"bundlesize": "0.18.0",
"webpack": "4.35.0",
"webpack-cli": "3.3.5"
}
}
7 changes: 7 additions & 0 deletions bundle-test/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as LoonaAngular from '@loona/angular';
import * as LoonaReact from '@loona/react';

console.log(
LoonaAngular,
LoonaReact
)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"packages/angular",
"packages/react",
"packages/schematics",
"examples/react/basic"
"examples/react/basic",
"bundle-test"
]
},
"devDependencies": {
Expand Down