Add bundlesize package to tests
https://github.com/siddharthkp/bundlesize
This commit is contained in:
parent
9edbd63d17
commit
a3086737ba
10
README.md
10
README.md
|
@ -21,8 +21,8 @@ $ yarn install # or npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
- dotenv
|
- [ ] dotenv
|
||||||
- https://github.com/vadimdemedes/ink
|
- [ ] https://github.com/vadimdemedes/ink
|
||||||
- bundlesize
|
- [x] bundlesize
|
||||||
- Prepack
|
- [ ] Prepack
|
||||||
- https://greenkeeper.io/
|
- [ ] https://greenkeeper.io/
|
||||||
|
|
19
package.json
19
package.json
|
@ -8,34 +8,29 @@
|
||||||
"eslint": "eslint src",
|
"eslint": "eslint src",
|
||||||
"prebuild": "npm run eslint",
|
"prebuild": "npm run eslint",
|
||||||
"build": "babel src -d build",
|
"build": "babel src -d build",
|
||||||
"test": "jest --config .jest.json",
|
"test": "jest --config .jest.json && npm run test:bundlesize",
|
||||||
"test:watch": "npm test -- --watch",
|
"test:watch": "npm test -- --watch",
|
||||||
"test:coverage": "npm test -- --coverage",
|
"test:coverage": "npm test -- --coverage",
|
||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
|
"test:bundlesize": "bundlesize",
|
||||||
"release": "np",
|
"release": "np",
|
||||||
|
|
||||||
"preexample:install": "npm run example:peripheral:install",
|
"preexample:install": "npm run example:peripheral:install",
|
||||||
"example:install": "npm run example:webapp:install",
|
"example:install": "npm run example:webapp:install",
|
||||||
"example:start": "npm run example:peripheral:start",
|
"example:start": "npm run example:peripheral:start",
|
||||||
"example:deploy": "npm run example:webapp:deploy",
|
"example:deploy": "npm run example:webapp:deploy",
|
||||||
|
|
||||||
"example:webapp:install": "cd example/webapp && npm install",
|
"example:webapp:install": "cd example/webapp && npm install",
|
||||||
"example:webapp:build": "cd example/webapp && npm run build",
|
"example:webapp:build": "cd example/webapp && npm run build",
|
||||||
"example:webapp:deploy": "cd example/webapp && npm run deploy",
|
"example:webapp:deploy": "cd example/webapp && npm run deploy",
|
||||||
|
|
||||||
"example:peripheral:install": "cd example/peripheral && npm install",
|
"example:peripheral:install": "cd example/peripheral && npm install",
|
||||||
"example:peripheral:build": "cd example/peripheral && npm run build",
|
"example:peripheral:build": "cd example/peripheral && npm run build",
|
||||||
"example:peripheral:start": "cd example/peripheral && npm start",
|
"example:peripheral:start": "cd example/peripheral && npm start",
|
||||||
|
"test:ci": "jest --config .jest.ci.json && npm run test:bundlesize",
|
||||||
"test:ci": "jest --config .jest.ci.json",
|
|
||||||
"test:coverage:ci": "npm run test:coverage && codecov -t $CODECOV_TOKEN",
|
"test:coverage:ci": "npm run test:coverage && codecov -t $CODECOV_TOKEN",
|
||||||
"preexample:ci": "npm run example:webapp:install",
|
"preexample:ci": "npm run example:webapp:install",
|
||||||
"example:ci": "npm run example:webapp:build"
|
"example:ci": "npm run example:webapp:build"
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": [
|
"presets": ["latest"]
|
||||||
"latest"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -76,5 +71,11 @@
|
||||||
"redux": "^3.7.1",
|
"redux": "^3.7.1",
|
||||||
"redux-thunk": "^2.2.0",
|
"redux-thunk": "^2.2.0",
|
||||||
"text-encoding": "^0.6.4"
|
"text-encoding": "^0.6.4"
|
||||||
|
},
|
||||||
|
"bundlesize": [
|
||||||
|
{
|
||||||
|
"path": "./build/**.js",
|
||||||
|
"maxSize": "2 Kb"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue