diff --git a/package.json b/package.json index 1251d7b..46661d1 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "main": "src/index.js", "scripts": { "test": "echo \"Error: no test specified\" & exit 1", - "start": "watchify src/index.js -t [ envify --NODE_ENV development ] -t [ babelify --presets [ es2015 ] ] -o dist/tesseract.dev.js --standalone Tesseract & watchify src/browser/worker.js -t [ envify --NODE_ENV development ] -t [ babelify --presets [ es2015 ] ] -o dist/worker.dev.js & http-server -p 7355", - "build": "browserify src/index.js -t [ babelify --presets [ es2015 ] ] -o dist/tesseract.js --standalone Tesseract && browserify src/browser/worker.js -t [ babelify --presets [ es2015 ] ] -o dist/worker.js", + "start": "concurrently --kill-others \"watchify src/index.js -t [ envify --NODE_ENV development ] -t [ babelify --presets [ es2015 ] ] -o dist/tesseract.dev.js --standalone Tesseract\" \"watchify src/browser/worker.js -t [ envify --NODE_ENV development ] -t [ babelify --presets [ es2015 ] ] -o dist/worker.dev.js\" \"http-server -p 7355\"", + "build": "concurrently --kill-others \"browserify src/index.js -t [ babelify --presets [ es2015 ] ] -o dist/tesseract.js --standalone Tesseract\" \"browserify src/browser/worker.js -t [ babelify --presets [ es2015 ] ] -o dist/worker.js\"", "release": "npm run build && git commit -am 'new release' && git push && git tag `jq -r '.version' package.json` && git push origin --tags && npm publish" }, "browser": { @@ -18,6 +18,7 @@ "babel-preset-es2015": "^6.16.0", "babelify": "^7.3.0", "browserify": "^13.1.0", + "concurrently": "^3.1.0", "envify": "^3.4.1", "http-server": "^0.9.0", "pako": "^1.0.3", @@ -41,4 +42,4 @@ "url": "https://github.com/naptha/tesseract.js/issues" }, "homepage": "https://github.com/naptha/tesseract.js" -} \ No newline at end of file +}