Makefile 383 B

12345678910111213141516171819202122232425262728293031323334
  1. all: clean dev-setup build-js-production
  2. # Dev env management
  3. dev-setup: clean npm-init
  4. npm-init:
  5. npm ci
  6. npm-update:
  7. npm update
  8. # Building
  9. build-js:
  10. npm run dev
  11. build-js-production:
  12. npm run build
  13. watch-js:
  14. npm run watch
  15. # Linting
  16. lint-fix:
  17. npm run lint:fix
  18. lint-fix-watch:
  19. npm run lint:fix-watch
  20. # Cleaning
  21. clean:
  22. rm -rf dist
  23. clean-git: clean
  24. git checkout -- dist