123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- # ---------- ---------- ---------- ---------- ---------- ----------
- #
- # med-appointments
- #
- # ---------- ---------- ---------- ---------- ---------- ----------
- target: help
- .PHONY: help
- help:
- @echo "Usage: make [PHONY]"
- @sed -n -e '/sed/! s/\.PHONY: //p' Makefile
- .PHONY: all
- all: run
- .PHONY: run
- run:
- @npm run serve
- .PHONY: upgrade
- upgrade:
- vue upgrade
- npm audit fix
- @echo "Suggestion: sudo npm update -g @vue/cli"
- .PHONY: init
- init:
- @npm install
- .PHONY: build
- build:
- @npm run build
- @mkdir -p output
- @rsync -va ./dist/ ./output/
- @mkdir -p output/css || echo "pass"
- @mkdir -p output/js || echo "pass"
- @cp -r ./dist/css/app.*.css ./output/css/app.css
- @cp -r ./dist/js/about.*.js ./output/js/about.js
- @cp -r ./dist/js/about.*.js.map ./output/js/about.js.map
- @cp -r ./dist/js/app.*.js ./output/js/app.js
- @cp -r ./dist/js/app.*.js.map ./output/js/app.js.map
- @cp -r ./dist/js/chunk-vendors.*.js ./output/js/chunk-vendors.js
- @cp -r ./dist/js/chunk-vendors.*.js.map ./output/js/chunk-vendors.js.map
- @printf '\n '`git rev-parse HEAD`
- @printf '\n\n'
- .PHONY: rebuild
- rebuild: clean build
- .PHONY: clean
- clean:
- @rm -rf dist/ output/
|