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 4
4
- " node"
5
5
- " lts/*"
6
6
before_script :
7
- - npm run compile
8
- - npm run dist
7
+ - npm run build
9
8
env :
10
9
- TEST_SUBJECT=src
11
10
- 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 8
8
"test:all" : " run-s compile dist test test-dist test-lib" ,
9
9
"test-dist" : " TEST_SUBJECT=dist node_modules/.bin/mocha --require @babel/register test/.setup.js --recursive test" ,
10
10
"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" ,
13
14
"storybook" : " start-storybook -p 6006" ,
14
15
"build-storybook" : " del-cli docs && build-storyb
6D4D
ook -c .storybook -o docs"
15
16
},
39
40
"babelify" : " ^10.0.0" ,
40
41
"browserify" : " ^16.2.3" ,
41
42
"browserify-shim" : " ^3.8.14" ,
43
+ "bundlewatch" : " ^0.2.6" ,
42
44
"chai" : " ^4.1.2" ,
43
45
"chai-string" : " ^1.4.0" ,
44
46
"del-cli" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments