mirror of
https://github.com/Luzifer/password.git
synced 2024-11-09 09:50:07 +00:00
Knut Ahlers
eed2ae8b08
- Fix broken vendoring for library users (closes #4) - Move command to `cmd/password` subdir - Drop support for Alfred workflow - Add support for Go 1.11+ modules
22 lines
572 B
Makefile
22 lines
572 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 -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 cmd/password/golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
cd cmd/password && bash golang.sh
|