1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- # ---------- ---------- ---------- ---------- ---------- ----------
- #
- # med-appointments Makefile
- #
- # 1) config, vars, and target
- # 2) functions
- # 3) phonies
- #
- # ---------- ---------- ---------- ---------- ---------- ----------
- target: help
- # ---------- ---------- ---------- ---------- ---------- ----------
- # functions
- # ---------- ---------- ---------- ---------- ---------- ----------
- define fix
- @npx prettier --write ./src/*/*.js ./src/*/*.vue
- endef
- # ---------- ---------- ---------- ---------- ---------- ----------
- # phonies
- # ---------- ---------- ---------- ---------- ---------- ----------
- .PHONY: help
- help:
- @echo "Usage: make [PHONY]"
- @sed -n -e '/sed/! s/\.PHONY: //p' Makefile
- .PHONY: run
- run:
- @npm run serve
- .PHONY: rerun
- rerun: dev run
- .PHONY: upgrade
- upgrade:
- vue upgrade
- npm audit fix || echo ""
- @echo "Suggestion: sudo npm update -g @vue/cli"
- .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: dev
- dev:
- @$(call fix)
- .PHONY: rebuild
- rebuild: clean build
- .PHONY: clean
- clean:
- @rm -rf dist/ output/
|