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 \
|
|
|
|
sh -c "yarn && npx webpack"
|
2015-05-10 14:38:17 +00:00
|
|
|
|
2018-12-30 11:40:19 +00:00
|
|
|
debug:
|
2017-10-31 11:01:53 +00:00
|
|
|
go-bindata --debug frontend/...
|
|
|
|
go run *.go serve
|
|
|
|
open http://127.0.0.1:3000/
|
2015-05-10 14:38:17 +00:00
|
|
|
|
2018-12-30 11:40:19 +00:00
|
|
|
pack: compile_js
|
2018-12-30 21:02:17 +00:00
|
|
|
go-bindata -modtime 1 frontend/...
|
2017-10-31 11:01:53 +00:00
|
|
|
bash generateXKCDWordList.sh
|
2017-09-22 13:30:14 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|
2017-09-22 14:22:05 +00:00
|
|
|
|
|
|
|
workflow:
|
2017-09-22 15:52:10 +00:00
|
|
|
bash build-workflow.sh
|