1
0
mirror of https://github.com/Luzifer/password.git synced 2024-09-19 10:22:56 +00:00
password/Makefile
Knut Ahlers aad5aeaf79
Fix node package vulnerabilities, switch to NPM
Yarn does not support automatic fix of vulnerabilities (yarnpkg/yarn#7075) so use NPM which does

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-07-14 00:08:25 +02:00

23 lines
582 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 "npx npm@lts ci && 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