Browse Source

add npm script actions for building *.web.js

Kyle P Davis 10 years ago
parent
commit
30ff9e857e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      package.json

+ 3 - 1
package.json

@@ -16,7 +16,9 @@
   ],
   "main": "./mungedb-aggregate.js",
   "scripts": {
-    "test": "npm_scripts/test/test.sh"
+    "test": "npm_scripts/test/test.sh",
+    "browserify": "N=aggregate; browserify --standalone $N ./lib/index.js | tee $N.web.js | uglifyjs -c > $N.web.min.js",
+    "webpack": "N=aggregate; webpack -v -c --progress -d --output-library-target var --output-library $N --entry=./lib/ $N.web.js"
   },
   "repository": {
     "url": "git+https://github.com/RiveraGroup/mungedb-aggregate.git#master"