From 9c79f08c96046a8c5ab53d313a2f628feae618ec Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Mon, 13 Sep 2021 15:25:01 +0200 Subject: [PATCH] Add build make target --- Makefile | 9 +++++++++ README.md | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0ad7c63..24aadca 100644 --- a/Makefile +++ b/Makefile @@ -14,3 +14,12 @@ test: .PHONY: watch watch: modd + +.PHONY: clean +clean: + rm -rf server/craban server/web/static/* + +.PHONY: build +build: clean + cd webapp && npm run build + cd server && go build -v -race ./cmd/craban diff --git a/README.md b/README.md index 271dced..8843cfc 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Default configuration can be found in the - [X] Split server and webapp in different folders - [X] Add modd for easy development forkflow - [ ] Add webapp make targets -- [ ] Add bundle and install make targets +- [X] Add build make target - [X] Create basic webapp structure and development workflow - [X] Think of a better name - [ ] Add email config and communications