mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 23:27:54 -05:00
Make start also watch, and allow stop to kill it
This commit is contained in:
parent
a696f30040
commit
4fdc4dc49d
2 changed files with 6 additions and 4 deletions
5
Makefile
5
Makefile
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue