test: test bundle size in CI

release
Nolan Lawson 2019-12-29 13:47:15 -08:00
parent 99eae3605d
commit c8305f6013
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ sudo: false
script: yarn test script: yarn test
before_script: before_script:
- yarn prettier:check - yarn prettier:check
- yarn test:size
branches: branches:
only: only:
- master - master

View File

@ -76,6 +76,7 @@
"react:14": "npm run react:clean && npm i react@^0.14 react-dom@^0.14 react-addons-test-utils@^0.14 --save-dev", "react:14": "npm run react:clean && npm i react@^0.14 react-dom@^0.14 react-addons-test-utils@^0.14 --save-dev",
"react:15": "npm run react:clean && npm i react@^15 react-dom@^15 react-addons-test-utils@^15 --save-dev", "react:15": "npm run react:clean && npm i react@^15 react-dom@^15 react-addons-test-utils@^15 --save-dev",
"test": "npm run clean && jest", "test": "npm run clean && jest",
"test:size": "size-limit",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
"storybook": "start-storybook -p 6006", "storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook", "build-storybook": "build-storybook",