From 01c7c4a16fe7bbbafa3ecee133efc61aafd09ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=BCtbach=20Christian?= Date: Tue, 25 Oct 2016 15:34:25 +0200 Subject: [PATCH] npm run start did not work on a windows maschine: http://stackoverflow.com/questions/30950032/how-can-i-run-multiple-npm-scripts-in-parallel --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1251d7b..d394690 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "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", + "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": "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" }, @@ -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 +}