mirror of
https://github.com/Luzifer/password.git
synced 2024-11-09 09:50:07 +00:00
Knut Ahlers
d217ac0642
to prevent blank HTML without styling Signed-off-by: Knut Ahlers <knut@ahlers.me>
26 lines
528 B
Makefile
26 lines
528 B
Makefile
default: pack
|
|
|
|
compile_js:
|
|
rm -f ./frontend/assets/*
|
|
docker run --rm -i \
|
|
-v "$(CURDIR):$(CURDIR)" \
|
|
-w "$(CURDIR)/js" \
|
|
-u $(shell id -u) \
|
|
node:10-alpine \
|
|
sh -c "yarn && npx webpack"
|
|
|
|
debug:
|
|
go-bindata --debug frontend/...
|
|
go run *.go serve
|
|
open http://127.0.0.1:3000/
|
|
|
|
pack: compile_js
|
|
go-bindata -modtime 1 frontend/...
|
|
bash generateXKCDWordList.sh
|
|
|
|
publish:
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
bash golang.sh
|
|
|
|
workflow:
|
|
bash build-workflow.sh
|