Make start also watch, and allow stop to kill it

This commit is contained in:
Ray Schamp 2015-10-08 16:21:39 -06:00
parent a696f30040
commit 4fdc4dc49d
2 changed files with 6 additions and 4 deletions

View file

@ -29,8 +29,9 @@ watch:
wait
stop:
pkill -f "node $(WEBPACK) -d --watch"
pkill -f "node $(WATCH) make clean && make static ./static"
-pkill -f "$(WEBPACK) -d --watch"
-pkill -f "$(WATCH) make clean && make static ./static"
-pkill -f "$(NODE) ./server/index.js"
start:
$(NODE) ./server/index.js

View file

@ -3,10 +3,11 @@
"version": "1.0.0",
"description": "Standalone WWW client for Scratch",
"scripts": {
"start": "make start",
"start": "make start &",
"poststart": "make watch",
"test": "make test",
"watch": "make watch",
"stop-watch": "make stop-watch",
"stop": "make stop",
"build": "make build",
"prestart": "make build"
},