Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 43d4d7f

Browse files
committed
chore: add bundlesize
1 parent f66cb3c commit 43d4d7f

File tree

2 files changed

+380
-7
lines changed

2 files changed

+380
-7
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@
2222
"build:lib": "cross-env BABEL_ENV=lib babel --out-dir build src",
2323
"build:rollup": "cross-env BABEL_ENV=rollup rollup -c",
2424
"build:watch": "yarn build:lib --watch",
25-
"ci": "yarn lint && yarn test",
25+
"ci": "yarn lint && yarn test && yarn build && bundlesize",
2626
"deploy:docs": "firebase deploy",
2727
"dev": "styleguidist server",
2828
"lint": "eslint .",
2929
"prebuild": "shx rm -rf build",
3030
"release": "standard-version && conventional-github-releaser --preset angular && yarn build && yarn deploy:docs",
3131
"test": "jest"
3232
},
33+
"bundlesize": [
34+
{
35+
"path": "./build/dist/smooth-ui.min.js",
36+
"maxSize": "18 kB"
37+
}
38+
],
3339
"devDependencies": {
3440
"@babel/cli": "^7.0.0-rc.1",
3541
"@babel/core": "^7.0.0-rc.1",
@@ -43,6 +49,7 @@
4349
"babel-eslint": "^8.2.6",
4450
"babel-jest": "^23.4.2",
4551
"babel-loader": "^7.1.5",
52+
"bundlesize": "^0.17.0",
4653
"conventional-github-releaser": "^3.1.2",
4754
"cross-env": "^5.2.0",
4855
"enzyme": "^3.4.2",

0 commit comments

Comments
 (0)