Skip to content

Commit ca6ea10

Browse files
authored
Add CI to keep bundle size under 10 kb (#16)
* Add bundle size CI * Version bump: 2.0.2
1 parent 5644d7b commit ca6ea10

File tree

4 files changed

+4018
-48
lines changed

4 files changed

+4018
-48
lines changed

.size-limit.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = [
2+
{
3+
path: 'lib',
4+
limit: '10 KB',
5+
}
6+
]

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_js:
33
- '8'
44
notifications:
55
email: false
6+
before_script: yarn size
67
deploy:
78
provider: npm
89

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-flash",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Redux action creators for displaying flash messages",
55
"main": "lib/index.js",
66
"scripts": {
@@ -11,6 +11,7 @@
1111
"lint": "eslint src",
1212
"prepublish": "yarn run lint && yarn run clean && yarn run build",
1313
"test": "jest",
14+
"size": "yarn build && size-limit",
1415
"test:coverage": "jest --coverage",
1516
"report-coverage": "codeclimate-test-reporter < coverage/lcov.info"
1617
},
@@ -39,11 +40,12 @@
3940
"jest": "^19.0.2",
4041
"redux": "^3.7.2",
4142
"redux-mock-store": "^1.3.0",
42-
"rimraf": "^2.5.4"
43+
"rimraf": "^2.5.4",
44+
"size-limit": "^1.0.0"
4345
},
4446
"dependencies": {
4547
"prop-types": "^15.6.1",
46-
"redux-actions": "^2.0.3",
48+
"redux-actions": "^2.6.5",
4749
"uuid": "^3.1.0"
4850
},
4951
"peerDependencies": {

0 commit comments

Comments
 (0)