File tree Expand file tree Collapse file tree 4 files changed +2518
-144
lines changed
Expand file tree Collapse file tree 4 files changed +2518
-144
lines changed Original file line number Diff line number Diff line change 99matrix :
1010 include :
1111 - node_js : ' 9'
12- script : npm run test -- --runInBand
12+ script : npm run test -- --runInBand && npm run size
1313 env : CI=tests 9
1414 - node_js : ' 9'
15- script : npm test -- --runInBand --coverage
15+ script : npm test -- --runInBand --coverage && npm run size
1616 env : CI=coverage
1717 - node_js : ' 8'
18- script : npm run test -- --runInBand
18+ script : npm run test -- --runInBand && npm run size
1919 env : CI=tests 8
2020 - node_js : ' 6'
21- script : npm run test -- --runInBand
21+ script : npm run test -- --runInBand && npm run size
2222 env : CI=tests 6
2323before_install :
2424 - npm install -g npm@latest
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ test_script:
1616 - node --version
1717 - npm --version
1818 - cmd : " npm test"
19+ - cmd : " npm run size"
Original file line number Diff line number Diff line change 44 "description" : " Match style objects containing CSS Media Queries with React Native" ,
55 "main" : " dist/index.js" ,
66 "scripts" : {
7+ "size" : " size-limit" ,
78 "prepublish" : " npm run build" ,
89 "prebuild" : " rimraf dist" ,
910 "build" : " babel src --out-dir dist --ignore src/__tests__,src/__mocks__" ,
6465 "lint-staged" : " ^7.0.4" ,
6566 "npmpub" : " ^3.1.0" ,
6667 "prettier" : " ^1.12.0" ,
67- "rimraf" : " ^2.6.2"
68+ "rimraf" : " ^2.6.2" ,
69+ "size-limit" : " ^0.18.3"
6870 },
6971 "prettier" : {
7072 "semi" : true ,
7173 "singleQuote" : false ,
7274 "trailingComma" : " none"
7375 },
76+ "size-limit" : [
77+ {
78+ "limit" : " 3 KB" ,
79+ "path" : " src/index.js"
80+ }
81+ ],
7482 "jest" : {
7583 "collectCoverageFrom" : [
7684 " src/*.js"
You can’t perform that action at this time.
0 commit comments