build: Add start and watch commands

This commit is contained in:
Alexander Polynomdivision 2018-09-20 18:50:15 +02:00
parent 08d8c2c562
commit 466e5a3107
3 changed files with 14 additions and 0 deletions

View File

@ -2,5 +2,11 @@
frontend: frontend:
$(MAKE) -C frontend/ build $(MAKE) -C frontend/ build
fwatch:
$(MAKE) -C frontend/ watch
backend: backend:
$(MAKE) -C backend/ build $(MAKE) -C backend/ build
bstart:
$(MAKE) -C backend/ start

View File

@ -4,3 +4,7 @@ node_modules:
.PHONY: build .PHONY: build
build: build:
npm run-script build npm run-script build
.PHONY: start
start:
node dist/main.js

View File

@ -22,3 +22,7 @@ build: node_modules dist/minified
@echo Minifying @echo Minifying
$(foreach file, $(wildcard dist/*.js), $(call minify, $(file))) $(foreach file, $(wildcard dist/*.js), $(call minify, $(file)))
$(shell ls -lah ./dist/minified) $(shell ls -lah ./dist/minified)
.PHONY: watch
watch:
npm start