Skip to content

Commit c74581f

Browse files
authored
feat: setup bundlesize (#914)
* feat: setup bundlesize
1 parent bd1042f commit c74581f

File tree

4 files changed

+451
-385
lines changed

4 files changed

+451
-385
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ commands:
3434
description: 'Building artifacts'
3535
steps:
3636
- run: yarn build
37+
- run: yarn bundlesize
3738
save_workspace:
3839
steps:
3940
- persist_to_workspace:

bundlesize.config.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"files": [
3+
{
4+
"path": "./dist/ui-kit.esm.js",
5+
"maxSize": "160 kB"
6+
}
7+
]
8+
}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"test": "jest --config jest.test.config.js",
5757
"test:watch": "jest --config jest.test.config.js --watch",
5858
"test:bundle": "jest --config jest.bundle.config.js",
59+
"bundlesize": "bundlesize",
5960
"test:bundle:watch": "jest --config jest.bundle.config.js --watch",
6061
"release:next": "yarn publish --tag next",
6162
"percy": "percy exec -- jest --config jest.visual.config.js --runInBand",
@@ -122,6 +123,7 @@
122123
"babel-plugin-transform-rename-import": "2.3.0",
123124
"babel-preset-jest": "24.6.0",
124125
"browserslist": "4.6.3",
126+
"bundlesize": "0.18.0",
125127
"clean-webpack-plugin": "3.0.0",
126128
"colors": "1.3.3",
127129
"common-tags": "1.8.0",

0 commit comments

Comments
 (0)