2015-05-10 14:38:17 +00:00
|
|
|
default: pack
|
|
|
|
|
2018-12-30 11:40:19 +00:00
|
|
|
compile_js:
|
2018-12-30 12:43:38 +00:00
|
|
|
rm -f ./frontend/assets/*
|
2018-12-30 11:40:19 +00:00
|
|
|
docker run --rm -i \
|
|
|
|
-v "$(CURDIR):$(CURDIR)" \
|
|
|
|
-w "$(CURDIR)/js" \
|
|
|
|
-u $(shell id -u) \
|
|
|
|
node:10-alpine \
|
2019-07-13 22:06:31 +00:00
|
|
|
sh -c "npx npm@lts ci && npx webpack"
|
2015-05-10 14:38:17 +00:00
|
|
|
|
2018-12-30 11:40:19 +00:00
|
|
|
debug:
|
2019-02-28 18:51:33 +00:00
|
|
|
go-bindata --debug -o cmd/password/bindata.go --pkg=main frontend/...
|
2017-10-31 11:01:53 +00:00
|
|
|
go run *.go serve
|
2015-05-10 14:38:17 +00:00
|
|
|
|
2018-12-30 11:40:19 +00:00
|
|
|
pack: compile_js
|
2019-02-28 18:51:33 +00:00
|
|
|
go-bindata -modtime 1 -o cmd/password/bindata.go --pkg=main frontend/...
|
2017-10-31 11:01:53 +00:00
|
|
|
bash generateXKCDWordList.sh
|
2017-09-22 13:30:14 +00:00
|
|
|
|
|
|
|
publish:
|
2019-02-28 18:51:33 +00:00
|
|
|
curl -sSLo cmd/password/golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
cd cmd/password && bash golang.sh
|