1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-12-20 04:41:17 +00:00
password/Makefile
Knut Ahlers 032281ba56
Port from coffeescript to plain ES6
- Use Babel to transpile sources
- Use Webpack to include all libraries

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-12-30 12:40:19 +01:00

25 lines
490 B
Makefile

default: pack
compile_js:
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 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