1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-21 14:41:23 +02:00

update bundling

This commit is contained in:
Ian Storm Taylor
2016-07-29 10:46:31 -07:00
parent 25d78aa391
commit 788627d2db

View File

@@ -32,8 +32,10 @@
"babel-preset-stage-0": "^6.5.0",
"babelify": "^7.3.0",
"browserify": "^13.0.1",
"browserify-shim": "^3.8.12",
"component-type": "^1.2.1",
"disc": "^1.3.2",
"envify": "^3.4.1",
"eslint": "^3.0.1",
"eslint-plugin-import": "^1.10.2",
"eslint-plugin-react": "^5.2.2",
@@ -56,6 +58,8 @@
"source-map-support": "^0.4.0",
"to-camel-case": "^1.0.0",
"to-title-case": "^1.0.0",
"uglify-js": "^2.7.0",
"uglifyify": "^3.0.2",
"watchify": "^3.7.0"
},
"scripts": {
@@ -64,7 +68,9 @@
"disc:build": "mkdir -p ./tmp && browserify ./dist/index.js --full-paths --outfile ./tmp/build.js",
"disc:open": "discify ./tmp/build.js --open",
"dist": "npm run dist:npm && npm run dist:bundle",
"dist:bundle": "browserify ./dist/index.js --standalone Slate --outfile ./dist/slate.js",
"dist:bundle": "npm run dist:bundle:max && npm run dist:bundle:min",
"dist:bundle:max": "NODE_ENV=production browserify ./dist/index.js --transform envify --transform browserify-shim --standalone Slate --outfile ./dist/slate.js",
"dist:bundle:min": "NODE_ENV=production browserify ./dist/index.js --transform envify --transform uglifyify --transform browserify-shim --standalone Slate | uglifyjs --output ./dist/slate.min.js",
"dist:npm": "babel --out-dir ./dist ./lib",
"dist:watch": "babel --watch --out-dir ./dist ./lib",
"examples": "browserify --debug --transform babelify ./examples/index.js --outfile ./examples/build.js",
@@ -76,6 +82,10 @@
"test": "npm run dist && npm run lint && npm run test:server",
"test:server": "mocha --compilers js:babel-core/register --reporter spec ./test/server.js"
},
"browserify-shim": {
"react": "global:React",
"react-dom": "global:ReactDOM"
},
"keywords": [
"canvas",
"contenteditable",