Skip to content

Commit d1c0712

Browse files
authored
Added bundlewatch (#268)
1 parent 7f4c81e commit d1c0712

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

bundlewatch.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const bundlewatchConfig = {
2+
files: [
3+
{
4+
path: './dist/angular-cld/bundles/cloudinary-angular-5.x.umd.js',
5+
maxSize: '30kb'
6+
},
7+
{
8+
path: './dist/angular-cld/fesm5/cloudinary-angular-5.x.js',
9+
maxSize: '25kb'
10+
}
11+
],
12+
defaultCompression: 'gzip',
13+
};
14+
15+
module.exports = bundlewatchConfig;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"install-sample-from-source": "node ./scripts/install-sample-from-source.js samples/photo_album",
99
"install-sample-from-source:jquery": "node ./scripts/install-sample-from-source.js samples/photo_album_with_jquery",
1010
"build": "ng build angular-cld && npm run copy-lib-assets",
11-
"copy-lib-assets": "cp \"LICENSE\" \"CHANGELOG.md\" \"dist/angular-cld\""
11+
"copy-lib-assets": "cp \"LICENSE\" \"CHANGELOG.md\" \"dist/angular-cld\"",
12+
"bundlewatch": "bundlewatch --config bundlewatch.config.js"
1213
},
1314
"private": true,
1415
"dependencies": {
@@ -34,6 +35,7 @@
3435
"@types/jasmine": "~2.8.6",
3536
"@types/jasminewd2": "~2.0.3",
3637
"@types/node": "~8.9.4",
38+
"bundlewatch": "^0.2.6",
3739
"cloudinary-core": "^2.8.1",
3840
"codelyzer": "~4.2.1",
3941
"jasmine-core": "~2.99.1",

0 commit comments

Comments
 (0)