1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

fix build:min/max to target dist folder

This commit is contained in:
Benjamin Kniffler
2016-09-15 00:51:50 +02:00
parent c22777c740
commit 644bd79e8d

View File

@@ -77,8 +77,8 @@
"disc:build": "mkdir -p ./tmp && browserify ./lib/index.js --full-paths > ./tmp/build.js", "disc:build": "mkdir -p ./tmp && browserify ./lib/index.js --full-paths > ./tmp/build.js",
"disc:open": "discify ./tmp/build.js --open", "disc:open": "discify ./tmp/build.js --open",
"build": "npm-run-all build:npm build:max build:min", "build": "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 > ./lib/slate.js", "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 > ./lib/slate.min.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:npm": "babel --out-dir ./lib ./src",
"examples": "npm-run-all examples:dev examples:prod", "examples": "npm-run-all examples:dev examples:prod",
"examples:dev": "browserify --debug --transform babelify ./examples/index.js > ./examples/build.dev.js", "examples:dev": "browserify --debug --transform babelify ./examples/index.js > ./examples/build.dev.js",