Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

Commit 4d5af0f

Browse files
committed
chore: adds size limiter
1 parent ee7e6e4 commit 4d5af0f

4 files changed

Lines changed: 442 additions & 1694 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_js:
44
script:
55
- yarn test
66
- yarn build
7+
- yarn size
78
before_install:
89
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0
910
- export PATH="$HOME/.yarn/bin:$PATH"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build": "lerna run build",
1010
"lint": "eslint --ext .tsx .",
1111
"test": "jest",
12+
"size": "lerna exec --ignore yubaba-common --ignore yubaba-examples -- yarn size",
1213
"pre-cut-version": "yarn test",
1314
"postinstall": "yarn build && lerna link",
1415
"cut-version": "yarn pre-cut-version && lerna publish --conventional-commits --skip-npm && yarn post-cut-version",

packages/yubaba/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@
88
"module": "dist/es6/packages/yubaba/src/index.js",
99
"sideEffects": false,
1010
"scripts": {
11-
"build": "rm -rf dist && tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.es6.json && cp ../../README.md README.md"
11+
"build": "rm -rf dist && tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.es6.json && cp ../../README.md README.md",
12+
"size": "size-limit"
1213
},
14+
"size-limit": [
15+
{
16+
"limit": "5.4 KB",
17+
"path": "dist/es6/packages/yubaba/src/index.js"
18+
}
19+
],
1320
"peerDependencies": {
1421
"emotion": "^9.2.9",
1522
"react": "^16.4.x",
@@ -30,6 +37,7 @@
3037
"react-body-classname": "^1.2.0",
3138
"react-dom": "^16.5.2",
3239
"react-router-dom": "^4.3.1",
40+
"size-limit": "^0.21.0",
3341
"styled-components": "^3.4.5",
3442
"yubaba-common": "^1.3.0"
3543
}

0 commit comments

Comments
 (0)