summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-04-12 05:50:59 +0200
committerGitHub <noreply@github.com>2020-04-12 00:50:59 -0300
commitcc4da79fb6302f35dfe9e2d5af7cda384083b0af (patch)
tree16379c9661ba913f969297bd19e26e0eccc6087e /Makefile
parent59c31b490f223059d766622f584502848219bab7 (diff)
downloadgitea-cc4da79fb6302f35dfe9e2d5af7cda384083b0af.tar.gz
gitea-cc4da79fb6302f35dfe9e2d5af7cda384083b0af.zip
add 'make watch-frontend' and expand docs (#10931)
* add 'make watch-frontend' and expand docs * add bindata note * add .PHONY Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bb328b4f10..f6d24be085 100644
--- a/Makefile
+++ b/Makefile
@@ -136,6 +136,7 @@ help:
@echo " - lint lint everything"
@echo " - lint-frontend lint frontend files"
@echo " - lint-backend lint backend files"
+ @echo " - watch-frontend watch frontend files and continuously rebuild"
@echo " - webpack build webpack files"
@echo " - fomantic build fomantic files"
@echo " - generate run \"go generate\""
@@ -275,6 +276,10 @@ lint-frontend: node_modules
npx eslint web_src/js webpack.config.js
npx stylelint web_src/less
+.PHONY: watch-frontend
+watch-frontend: node_modules
+ NODE_ENV=development npx webpack --hide-modules --display-entrypoints=false --watch
+
.PHONY: test
test:
$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='sqlite sqlite_unlock_notify' $(GO_PACKAGES)