Skip to content

Commit a597040

Browse files
Save npm-run-all and create npm script dev
The `dev` script runs both `watch:webpack` and `watch:server` in parallel.
1 parent c6e5109 commit a597040

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"author": "Mark <[email protected]>",
66
"scripts": {
77
"start": "webpack && node server.js",
8+
"dev": "npm-run-all --parallel watch:*",
89
"watch:webpack": "webpack -w",
910
"watch:server": "nodemon --ext js,jsx --ignore public/ server.js"
1011
},
@@ -27,7 +28,8 @@
2728
"webpack": "^1.13.1"
2829
},
2930
"devDependencies": {
30-
"nodemon": "^1.11.0"
31+
"nodemon": "^1.11.0",
32+
"npm-run-all": "^3.1.2"
3133
},
3234
"private": true,
3335
"license": "MIT"

0 commit comments

Comments
 (0)