mirror of
https://github.com/Luzifer/share.git
synced 2024-12-20 10:31:16 +00:00
26 lines
503 B
Makefile
26 lines
503 B
Makefile
default: webpack
|
|
|
|
lint:
|
|
docker run --rm -ti \
|
|
-v "$(CURDIR):/src" \
|
|
-w "/src/src" \
|
|
node:12-alpine \
|
|
npx eslint --ext .js,.vue --fix .
|
|
|
|
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
|
|
|
|
publish:
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
bash golang.sh
|