build: Add start and watch commands
This commit is contained in:
parent
08d8c2c562
commit
466e5a3107
6
Makefile
6
Makefile
@ -2,5 +2,11 @@
|
||||
frontend:
|
||||
$(MAKE) -C frontend/ build
|
||||
|
||||
fwatch:
|
||||
$(MAKE) -C frontend/ watch
|
||||
|
||||
backend:
|
||||
$(MAKE) -C backend/ build
|
||||
|
||||
bstart:
|
||||
$(MAKE) -C backend/ start
|
||||
|
@ -4,3 +4,7 @@ node_modules:
|
||||
.PHONY: build
|
||||
build:
|
||||
npm run-script build
|
||||
|
||||
.PHONY: start
|
||||
start:
|
||||
node dist/main.js
|
||||
|
@ -22,3 +22,7 @@ build: node_modules dist/minified
|
||||
@echo Minifying
|
||||
$(foreach file, $(wildcard dist/*.js), $(call minify, $(file)))
|
||||
$(shell ls -lah ./dist/minified)
|
||||
|
||||
.PHONY: watch
|
||||
watch:
|
||||
npm start
|
||||
|
Reference in New Issue
Block a user