aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-09-05 02:55:06 +0200
committerGitHub <noreply@github.com>2020-09-04 20:55:06 -0400
commite1535c74cc494dce85ea5c2e8a25665bed444217 (patch)
treeae4ccd99c77c3f6a7437e789a582b8a6fc89fa67 /Makefile
parent9837b598fcfb01bf01140309dd3d01452fbfb704 (diff)
downloadgitea-e1535c74cc494dce85ea5c2e8a25665bed444217.tar.gz
gitea-e1535c74cc494dce85ea5c2e8a25665bed444217.zip
Add 'make watch' (#12636)
* Add 'make watch' This combines frontend and backend watch into a single command that runs them in parallel on on SIGINT terminates both. Termination is not super-clean but I guess it does not have to. * move to tools/, trap more signals, remove gnu-specific flag * simplify Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f8e3668de1..bdf3855b27 100644
--- a/Makefile
+++ b/Makefile
@@ -155,6 +155,7 @@ help:
@echo " - build build everything"
@echo " - frontend build frontend files"
@echo " - backend build backend files"
+ @echo " - watch watch everything and continuously rebuild"
@echo " - watch-frontend watch frontend files and continuously rebuild"
@echo " - watch-backend watch backend files and continuously rebuild"
@echo " - clean delete backend and integration files"
@@ -316,6 +317,10 @@ lint-frontend: node_modules
.PHONY: lint-backend
lint-backend: golangci-lint revive vet
+.PHONY: watch
+watch:
+ bash tools/watch.sh
+
.PHONY: watch-frontend
watch-frontend: node-check $(FOMANTIC_DEST) node_modules
rm -rf $(WEBPACK_DEST_ENTRIES)