mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-22 04:31:40 +02:00
Add hook for frontend build
This commit is contained in:
6
Makefile
6
Makefile
@@ -28,7 +28,7 @@ SVELTE_SRC = $(wildcard $(FRONTEND)/src/*.svelte) \
|
||||
$(wildcard $(FRONTEND)/src/plots/*.svelte) \
|
||||
$(wildcard $(FRONTEND)/src/joblist/*.svelte)
|
||||
|
||||
.PHONY: clean test tags $(TARGET)
|
||||
.PHONY: clean test tags frontend $(TARGET)
|
||||
|
||||
.NOTPARALLEL:
|
||||
|
||||
@@ -36,6 +36,10 @@ $(TARGET): $(VAR) $(CFG) $(SVELTE_TARGETS)
|
||||
$(info ===> BUILD cc-backend)
|
||||
@go build -ldflags=${LD_FLAGS} ./cmd/cc-backend
|
||||
|
||||
frontend:
|
||||
$(info ===> BUILD frontend)
|
||||
cd web/frontend && npm install && npm run build
|
||||
|
||||
clean:
|
||||
$(info ===> CLEAN)
|
||||
@go clean
|
||||
|
Reference in New Issue
Block a user