File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 49
49
"babel-preset-react" : " ^6.5.0" ,
50
50
"babel-preset-stage-0" : " ^6.5.0" ,
51
51
"babel-register" : " ^6.7.2" ,
52
+ "bundlesize" : " ^0.14.4" ,
52
53
"chai" : " ^3.4.1" ,
53
54
"codecov.io" : " ^0.1.6" ,
54
55
"commitizen" : " ^2.8.1" ,
89
90
"webpack-dev-middleware" : " ^1.5.1" ,
90
91
"webpack-dev-server" : " ^1.14.1"
91
92
},
93
+ "peerDepencencies" : {
94
+ "prop-types" : " ^15.5.10" ,
95
+ "react" : " ^15.0.1" ,
96
+ "react-dom" : " ^15.0.1"
97
+ },
92
98
"scripts" : {
93
99
"commit" : " git-cz" ,
94
100
"changelog" : " conventional-changelog -p angular -i CHANGELOG.md -s" ,
95
101
"build" : " npm run clean && npm run compile" ,
96
102
"build:umd" : " NODE_ENV=development webpack src/index.js dist/react-gpt.js" ,
97
103
"build:umd:min" : " NODE_ENV=production webpack -p src/index.js dist/react-gpt.min.js" ,
104
+ "bundlesize" : " npm run build:umd:min && bundlesize" ,
98
105
"clean" : " rimraf lib coverage" ,
99
106
"compile" : " babel src --out-dir lib" ,
100
107
"examples" : " webpack-dev-server --config examples/webpack.config.js --content-base examples/apps --inline" ,
109
116
"commitizen" : {
110
117
"path" : " ./node_modules/cz-conventional-changelog"
111
118
}
112
- }
119
+ },
120
+ "bundlesize" : [
121
+ {
122
+ "path" : " ./dist/react-gpt.min.js" ,
123
+ "maxSize" : " 8.5 kB"
124
+ }
125
+ ]
113
126
}
You can’t perform that action at this time.
0 commit comments