2017-12-02 18:37:29 +00:00
|
|
|
default:
|
|
|
|
|
2018-04-22 18:14:49 +00:00
|
|
|
lint:
|
2018-07-26 21:05:46 +00:00
|
|
|
docker run --rm -ti -v $(CURDIR):$(CURDIR) -w $(CURDIR) luzifer/eslint src/*.js
|
2017-12-02 18:37:29 +00:00
|
|
|
|
2018-07-26 21:13:29 +00:00
|
|
|
pack: webpack
|
2018-04-22 18:20:45 +00:00
|
|
|
go-bindata -modtime 1 frontend/...
|
2017-12-02 18:43:46 +00:00
|
|
|
|
2018-07-26 21:13:29 +00:00
|
|
|
webpack: src/node_modules
|
|
|
|
cd src && npm run build
|
|
|
|
|
|
|
|
src/node_modules:
|
|
|
|
cd src && npm install
|
|
|
|
|
2017-12-02 18:43:46 +00:00
|
|
|
auto-hook-pre-commit: pack
|
|
|
|
git diff --exit-code bindata.go
|
|
|
|
|
|
|
|
publish:
|
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|