build: Add start and watch commands

This commit is contained in:
Alexander Polynomdivision committed 2018-09-20 18:50:15 +02:00
1 parent 08d8c2c562
commit 466e5a3107
3 files changed
+14

No files matched your search

+6
View File
@@ -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
View File
@@ -4,3 +4,7 @@ node_modules:
.PHONY: build
build:
npm run-script build
.PHONY: start
start:
node dist/main.js
+4
View File
@@ -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