File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 44 - " node"
55 - " lts/*"
66before_script :
7- - npm run compile
8- - npm run dist
7+ - npm run build
98env :
109 - TEST_SUBJECT=src
1110 - TEST_SUBJECT=lib
Original file line number Diff line number Diff line change 1+ const bundlewatchConfig = {
2+ files : [
3+ {
4+ path : './dist/cloudinary-react.js' ,
5+ maxSize : '41kb'
6+ }
7+ ] ,
8+ defaultCompression : 'gzip' ,
9+ } ;
10+
11+ module . exports = bundlewatchConfig ;
Original file line number Diff line number Diff line change 88 "test:all" : " run-s compile dist test test-dist test-lib" ,
99 "test-dist" : " TEST_SUBJECT=dist node_modules/.bin/mocha --require @babel/register test/.setup.js --recursive test" ,
1010 "test-lib" : " TEST_SUBJECT=lib node_modules/.bin/mocha --require @babel/register test/.setup.js --recursive test" ,
11- "compile" : " node_modules/.bin/babel src --out-dir lib --copy-files " ,
12- "dist" : " node_modules/.bin/webpack && npm run build-storybook" ,
11+ "prebuild" : " node_modules/.bin/babel src --out-dir lib --copy-files " ,
12+ "build" : " node_modules/.bin/webpack && npm run build-storybook && npm run bundlewatch" ,
13+ "bundlewatch" : " bundlewatch --config ./bundlewatch.config.js" ,
1314 "storybook" : " start-storybook -p 6006" ,
1415 "build-storybook" : " del-cli docs && build-storybook -c .storybook -o docs"
1516 },
3940 "babelify" : " ^10.0.0" ,
4041 "browserify" : " ^16.2.3" ,
4142 "browserify-shim" : " ^3.8.14" ,
43+ "bundlewatch" : " ^0.2.6" ,
4244 "chai" : " ^4.1.2" ,
4345 "chai-string" : " ^1.4.0" ,
4446 "del-cli" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments