1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-11-09 18:00:03 +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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
DRAFT: 'false'
GHUSER: Luzifer GHUSER: Luzifer
PACKAGES: github.com/Luzifer/password/cmd/password PACKAGES: github.com/Luzifer/password/cmd/password
REPO: password REPO: password

View file

@ -1,4 +1,4 @@
default: pack default:
compile_js: compile_js:
rm -f ./frontend/assets/* rm -f ./frontend/assets/*
@ -6,17 +6,9 @@ compile_js:
-v "$(CURDIR):$(CURDIR)" \ -v "$(CURDIR):$(CURDIR)" \
-w "$(CURDIR)/js" \ -w "$(CURDIR)/js" \
-u $(shell id -u) \ -u $(shell id -u) \
node:10-alpine \ node:18-alpine \
sh -c "npx npm@lts ci && npx webpack" sh -c "node build.mjs"
debug: publish: compile_js
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:
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh bash golang.sh