1
0
Fork 0
mirror of https://github.com/Luzifer/share.git synced 2024-12-20 10:31:16 +00:00
share/Makefile
Knut Ahlers 3d30096026
Add markdown support, update deps, improve build
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-01-27 21:04:25 +01:00

34 lines
615 B
Makefile

default:
lint:
docker run --rm -ti \
-v "$(CURDIR):/src" \
-w "/src/src" \
node:12-alpine \
npx eslint --ext .js,.vue --fix .
pack: webpack
go-bindata \
-modtime 1 \
frontend/...
webpack: src/node_modules
docker run --rm -i \
-v "$(CURDIR):/src" \
-w "/src/src" \
node:12-alpine \
npm run build
src/node_modules:
docker run --rm -i \
-v "$(CURDIR):/src" \
-w "/src/src" \
node:12-alpine \
npm ci
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