summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/package.json
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-09-05 21:07:31 +0200
committerSamy Pesse <samypesse@gmail.com>2016-09-05 21:07:31 +0200
commitee35da4be577943734d57c8c54a5c37f0cc10a0e (patch)
tree0df675523029fc4900929befc7449f2a2be86944 /packages/gitbook-core/package.json
parent24c4f419450487a8f52ec963e2f7b7de1c502e82 (diff)
downloadgitbook-ee35da4be577943734d57c8c54a5c37f0cc10a0e.zip
gitbook-ee35da4be577943734d57c8c54a5c37f0cc10a0e.tar.gz
gitbook-ee35da4be577943734d57c8c54a5c37f0cc10a0e.tar.bz2
Add task to build gitbook.core.min.js
Diffstat (limited to 'packages/gitbook-core/package.json')
-rw-r--r--packages/gitbook-core/package.json10
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/gitbook-core/package.json b/packages/gitbook-core/package.json
index 048a5c4..071837b 100644
--- a/packages/gitbook-core/package.json
+++ b/packages/gitbook-core/package.json
@@ -16,11 +16,15 @@
"babel-cli": "^6.14.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-react": "^6.11.1",
- "babel-preset-stage-2": "^6.13.0"
+ "babel-preset-stage-2": "^6.13.0",
+ "browserify": "^13.1.0",
+ "envify": "^3.4.1",
+ "uglify-js": "^2.7.3"
},
"scripts": {
- "dist": "rm -rf lib/ && babel -d lib/ src/",
- "prepublish": "npm run dist"
+ "dist-lib": "rm -rf lib/ && babel -d lib/ src/",
+ "dist-standalone": "browserify -r react -r react-dom -r ./lib/index.js:gitbook-core | uglifyjs -c > gitbook.core.js.min",
+ "prepublish": "npm run dist-lib && npm run dist-standalone"
},
"repository": {
"type": "git",