1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-11-09 09:50:07 +00:00

Update build setup

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-06-27 21:43:23 +02:00
parent 509aed10d8
commit 30cc6d98f8
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 5 additions and 12 deletions

View file

@ -8,6 +8,7 @@ commands:
environment:
CGO_ENABLED: 0
DRAFT: 'false'
GHUSER: Luzifer
PACKAGES: github.com/Luzifer/password/cmd/password
REPO: password

View file

@ -1,4 +1,4 @@
default: pack
default:
compile_js:
rm -f ./frontend/assets/*
@ -6,17 +6,9 @@ compile_js:
-v "$(CURDIR):$(CURDIR)" \
-w "$(CURDIR)/js" \
-u $(shell id -u) \
node:10-alpine \
sh -c "npx npm@lts ci && npx webpack"
node:18-alpine \
sh -c "node build.mjs"
debug:
go-bindata --debug -o cmd/password/bindata.go --pkg=main frontend/...
go run *.go serve
pack: compile_js
go-bindata -modtime 1 -o cmd/password/bindata.go --pkg=main frontend/...
bash generateXKCDWordList.sh
publish:
publish: compile_js
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh