Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ node_js:
- "node"
- "lts/*"
before_script:
- npm run compile
- npm run dist
- npm run build
env:
- TEST_SUBJECT=src
- TEST_SUBJECT=lib
Expand Down
11 changes: 11 additions & 0 deletions bundlewatch.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const bundlewatchConfig = {
files: [
{
path: './dist/cloudinary-react.js',
maxSize: '41kb'
}
],
defaultCompression: 'gzip',
};

module.exports = bundlewatchConfig;
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"test:all": "run-s compile dist test test-dist test-lib",
"test-dist": "TEST_SUBJECT=dist node_modules/.bin/mocha --require @babel/register test/.setup.js --recursive test",
"test-lib": "TEST_SUBJECT=lib node_modules/.bin/mocha --require @babel/register test/.setup.js --recursive test",
"compile": "node_modules/.bin/babel src --out-dir lib --copy-files ",
"dist": "node_modules/.bin/webpack && npm run build-storybook",
"prebuild": "node_modules/.bin/babel src --out-dir lib --copy-files ",
"build": "node_modules/.bin/webpack && npm run build-storybook && npm run bundlewatch",
"bundlewatch": "bundlewatch --config ./bundlewatch.config.js",
"storybook": "start-storybook -p 6006",
"build-storybook": "del-cli docs && build-storybook -c .storybook -o docs"
},
Expand Down Expand Up @@ -39,6 +40,7 @@
"babelify": "^10.0.0",
"browserify": "^16.2.3",
"browserify-shim": "^3.8.14",
"bundlewatch": "^0.2.6",
"chai": "^4.1.2",
"chai-string": "^1.4.0",
"del-cli": "^3.0.0",
Expand Down