mirror of
https://github.com/Luzifer/password.git
synced 2024-11-08 17:30:10 +00:00
Update build setup
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
509aed10d8
commit
30cc6d98f8
2 changed files with 5 additions and 12 deletions
|
@ -8,6 +8,7 @@ commands:
|
|||
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
DRAFT: 'false'
|
||||
GHUSER: Luzifer
|
||||
PACKAGES: github.com/Luzifer/password/cmd/password
|
||||
REPO: password
|
||||
|
|
16
Makefile
16
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue