frontend: Rework asset generation
This commit reworks frontend asset generation to not need manually written html files, but instead generate them automatically.
This commit is contained in:
parent
ebdbe9fabd
commit
ccab2883a6
42 changed files with 408 additions and 177 deletions
9
Makefile
9
Makefile
|
|
@ -1,14 +1,11 @@
|
|||
.PHONY: clean all deps
|
||||
|
||||
all: wdcli frontend
|
||||
all: wdcli
|
||||
|
||||
wdcli: internal/component/static/dist
|
||||
wdcli:
|
||||
go generate ./internal/component/static/
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue