internal/static: Bundle resources automatically

This commit is contained in:
Tom Wiesing 2022-10-06 16:38:17 +02:00
parent 9ada07ce70
commit 464b1bf5dd
No known key found for this signature in database
27 changed files with 1503 additions and 28 deletions

View file

@ -1,9 +1,16 @@
.PHONY: clean all
.PHONY: clean all deps
all: wdcli
all: wdcli frontend
wdcli:
wdcli: internal/component/static/dist
go build -o ./wdcli ./cmd/wdcli
internal/component/static/dist: internal/component/static/src
rm -rf internal/component/static/dist
cd internal/component/static/ && yarn dist
deps:
cd internal/component/static/ && yarn install
clean:
rm wdcli