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 32
32
" lib"
33
33
],
34
34
"dependencies" : {
35
+ "bundlesize" : " ^0.14.4" ,
35
36
"debounce" : " ^1.0.0" ,
36
37
"deep-equal" : " ^1.0.1" ,
37
38
"eventemitter3" : " ^2.0.2" ,
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