internal/static: Bundle resources automatically
This commit is contained in:
parent
9ada07ce70
commit
464b1bf5dd
27 changed files with 1503 additions and 28 deletions
13
Makefile
13
Makefile
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue