Skip to content

Commit 160a0db

Browse files
Merge pull request #47 from keithamus/FIX/replace-parallelshell-by-npm-run-all
FIX: Replace `parallelshell` by `npm-run-all`
2 parents 9fafd2e + a6a0b8f commit 160a0db

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

package.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"minifyify": "^6.0.0",
2121
"mocha": "^2.0.1",
2222
"nodemon": "^1.2.1",
23+
"npm-run-all": "^4.1.2",
2324
"opener": "^1.4.0",
24-
"parallelshell": "^1.0.0",
2525
"rimraf": "^2.2.8",
2626
"s3-cli": "^0.11.1",
2727
"stylus": "^0.49.3"
@@ -32,29 +32,22 @@
3232
},
3333
"scripts": {
3434
"clean": "rimraf dist/*",
35-
3635
"prebuild": "npm run clean -s",
3736
"build": "npm run build:scripts -s && npm run build:styles -s && npm run build:markup -s",
3837
"build:scripts": "browserify -d assets/scripts/main.js -p [minifyify --compressPath . --map main.js.map --output dist/main.js.map] | hashmark -n dist/main.js -s -l 8 -m assets.json \"dist/{name}{hash}{ext}\"",
3938
"build:styles": "stylus assets/styles/main.styl -m -o dist/ && hashmark -s -l 8 -m assets.json dist/main.css \"dist/{name}{hash}{ext}\"",
4039
"build:markup": "jade assets/markup/index.jade --obj assets.json -o dist",
41-
4240
"test": "karma start --singleRun",
43-
44-
"watch": "parallelshell \"npm run watch:test -s\" \"npm run watch:build -s\"",
41+
"watch": "npm-run-all --parallel \"watch:* -s\"",
4542
"watch:test": "karma start",
4643
"watch:build": "nodemon -q -w assets/ --ext \".\" --exec \"npm run build\"",
47-
4844
"open:prod": "opener http://example.com",
4945
"open:stage": "opener http://staging.example.internal",
5046
"open:dev": "opener http://localhost:9090",
51-
5247
"deploy:prod": "s3-cli sync ./dist/ s3://example-com/prod-site/",
5348
"deploy:stage": "s3-cli sync ./dist/ s3://example-com/stage-site/",
54-
5549
"serve": "http-server -p 9090 dist/",
56-
"live-reload": "live-reload --port=9091 dist/",
57-
58-
"dev": "npm run open:dev -s && parallelshell \"npm run live-reload -s\" \"npm run serve -s\" \"npm run watch -s\""
50+
"live-reload": "live-reload --port=9091 --delay=1250 dist/",
51+
"dev": "npm-run-all --parallel \"live-reload -s\" \"serve -s\" \"watch -s\" \"open:dev -s\""
5952
}
6053
}

0 commit comments

Comments
 (0)