mirror of
https://github.com/Luzifer/password.git
synced 2024-12-20 04:41:17 +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:
|
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
|
||||||
|
|
16
Makefile
16
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue