2017-12-02 18:37:29 +00:00
|
|
|
default:
|
|
|
|
|
2018-04-22 18:14:49 +00:00
|
|
|
lint:
|
2021-01-27 20:04:25 +00:00
|
|
|
docker run --rm -ti \
|
|
|
|
-v "$(CURDIR):/src" \
|
|
|
|
-w "/src/src" \
|
|
|
|
node:12-alpine \
|
|
|
|
npx eslint --ext .js,.vue --fix .
|
2017-12-02 18:37:29 +00:00
|
|
|
|
2018-07-26 21:13:29 +00:00
|
|
|
pack: webpack
|
2021-01-27 20:04:25 +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
|
2021-01-27 20:04:25 +00:00
|
|
|
docker run --rm -i \
|
|
|
|
-v "$(CURDIR):/src" \
|
|
|
|
-w "/src/src" \
|
|
|
|
node:12-alpine \
|
|
|
|
npm run build
|
2018-07-26 21:13:29 +00:00
|
|
|
|
|
|
|
src/node_modules:
|
2021-01-27 20:04:25 +00:00
|
|
|
docker run --rm -i \
|
|
|
|
-v "$(CURDIR):/src" \
|
|
|
|
-w "/src/src" \
|
|
|
|
node:12-alpine \
|
|
|
|
npm ci
|
2018-07-26 21:13:29 +00:00
|
|
|
|
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
|