Add Rollup and a checksize npm script

This commit is contained in:
Justin Fagnani
2019-12-20 10:22:57 -08:00
committed by Justin Fagnani
parent fc662728eb
commit 12d60c07dd
3 changed files with 441 additions and 1 deletions

View File

@@ -17,7 +17,8 @@
"test": "karma start karma.conf.cjs",
"test:watch": "karma start karma.conf.cjs --auto-watch=true --single-run=false",
"test:update-snapshots": "karma start karma.conf.cjs --update-snapshots",
"test:prune-snapshots": "karma start karma.conf.cjs --prune-snapshots"
"test:prune-snapshots": "karma start karma.conf.cjs --prune-snapshots",
"checksize": "rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js"
},
"keywords": [
"web component",