test: test bundle size in CI

dependabot/npm_and_yarn/websocket-extensions-0.1.4
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
before_script:
- yarn prettier:check
- yarn test:size
branches:
only:
- 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: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:size": "size-limit",
"prepublishOnly": "npm run build",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",