From 466e5a3107980db90106c9f5da09e967ae44f7b1 Mon Sep 17 00:00:00 2001 From: Alexander Polynomdivision Date: Thu, 20 Sep 2018 18:50:15 +0200 Subject: [PATCH] build: Add start and watch commands --- Makefile | 6 ++++++ backend/Makefile | 4 ++++ frontend/Makefile | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 9c16b91..7372c18 100644 --- a/Makefile +++ b/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 diff --git a/backend/Makefile b/backend/Makefile index e80f48e..cf97ad4 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -4,3 +4,7 @@ node_modules: .PHONY: build build: npm run-script build + +.PHONY: start +start: + node dist/main.js diff --git a/frontend/Makefile b/frontend/Makefile index 9ce55a6..4f4062f 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -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