diff --git a/package.json b/package.json index a10e27cc8..e989a1277 100644 --- a/package.json +++ b/package.json @@ -80,34 +80,34 @@ "watchify": "^3.7.0" }, "scripts": { - "clean": "rm -rf ./lib ./node_modules ./examples/build.dev.js ./examples/build.prod.js", - "disc": "npm-run-all build disc:build disc:open", - "disc:build": "mkdir -p ./tmp && browserify ./lib/index.js --full-paths --transform uglifyify --standalone Slate | uglifyjs > ./tmp/build.js", - "disc:open": "discify ./tmp/build.js --open", + "bench": "npm-run-all build:npm benchs", + "benchs": "babel-node ./node_modules/.bin/_matcha --reporter ./benchmark/reporter ./benchmark/index.js > ./tmp/benchmark-comparison.json && babel-node ./benchmark/compare", + "benchs:save": "babel-node ./node_modules/.bin/_matcha --reporter ./benchmark/reporter ./benchmark/index.js > ./tmp/benchmark-baseline.json", "build": "mkdir -p ./dist && npm-run-all build:npm build:max build:min", "build:max": "NODE_ENV=production browserify ./src/index.js --transform babelify --transform envify --transform [ browserify-global-shim --global ] --standalone Slate > ./dist/slate.js", "build:min": "NODE_ENV=production browserify ./src/index.js --transform babelify --transform envify --transform [ browserify-global-shim --global ] --transform uglifyify --standalone Slate | uglifyjs > ./dist/slate.min.js", "build:npm": "babel --out-dir ./lib ./src", "build:test": "babel --out-dir ./lib ./src --source-maps inline", + "clean": "rm -rf ./lib ./node_modules ./examples/build.dev.js ./examples/build.prod.js", + "disc": "npm-run-all build disc:build disc:open", + "disc:build": "mkdir -p ./tmp && browserify ./lib/index.js --full-paths --transform uglifyify --standalone Slate | uglifyjs > ./tmp/build.js", + "disc:open": "discify ./tmp/build.js --open", "examples": "npm-run-all examples:dev examples:prod", "examples:dev": "browserify --debug --transform babelify ./examples/index.js > ./examples/build.dev.js", "examples:prod": "NODE_ENV=production browserify --transform babelify ./examples/index.js > ./examples/build.prod.js", "gh-pages": "npm run build && npm run examples && gh-pages --dist ./examples", "lint": "eslint --ignore-pattern 'build.dev.js' --ignore-pattern 'build.prod.js' '{examples,src}/**/*.js'", "open": "open http://localhost:8080/dev.html", - "bench": "npm-run-all build:npm benchs", - "benchs": "babel-node ./node_modules/.bin/_matcha --reporter ./benchmark/reporter ./benchmark/index.js > ./tmp/benchmark-comparison.json && babel-node ./benchmark/compare", - "benchs:save": "babel-node ./node_modules/.bin/_matcha --reporter ./benchmark/reporter ./benchmark/index.js > ./tmp/benchmark-baseline.json", - "prepublish": "npm run build", "postpublish": "npm run gh-pages", + "prepublish": "npm run build", "release": "np", "release:next": "np --tag=next", "start": "http-server ./examples", "test": "npm-run-all build:test tests", "tests": "mocha --compilers js:babel-core/register ./test/index.js", "watch": "npm-run-all --parallel --print-label watch:lib watch:examples start", - "watch:lib": "babel --watch --out-dir ./lib ./src --source-maps inline", - "watch:examples": "watchify --debug --transform babelify ./examples/index.js -o ./examples/build.dev.js -v" + "watch:examples": "watchify --debug --transform babelify ./examples/index.js -o ./examples/build.dev.js -v", + "watch:lib": "babel --watch --out-dir ./lib ./src --source-maps inline" }, "browserify-global-shim": { "immutable": "Immutable",