Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. all: clean dev-setup build-js-production
  2. # Dev env management
  3. dev-setup: clean clean-dev 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 apps/accessibility/js/
  23. rm -rf apps/comments/js/
  24. rm -rf apps/files/js/dist/
  25. rm -rf apps/files_sharing/js/dist/
  26. rm -rf apps/files_trashbin/js/
  27. rm -rf apps/files_versions/js/
  28. rm -rf apps/oauth2/js/
  29. rm -rf apps/settings/js/vue-*
  30. rm -rf apps/systemtags/js/systemtags.*
  31. rm -rf apps/twofactor_backupcodes/js
  32. rm -rf apps/updatenotification/js/updatenotification.*
  33. rm -rf apps/workflowengine/js/
  34. rm -rf core/js/dist
  35. clean-dev:
  36. rm -rf node_modules
  37. clean-git: clean
  38. git checkout -- apps/accessibility/js/
  39. git checkout -- apps/comments/js/
  40. git checkout -- apps/files/js/dist/
  41. git checkout -- apps/files_sharing/js/dist/
  42. git checkout -- apps/files_trashbin/js/
  43. git checkout -- apps/files_versions/js/
  44. git checkout -- apps/oauth2/js/
  45. git checkout -- apps/settings/js/vue-*
  46. git checkout -- apps/systemtags/js/systemtags.*
  47. git checkout -- apps/twofactor_backupcodes/js
  48. git checkout -- apps/updatenotification/js/updatenotification.*
  49. git checkout -- apps/workflowengine/js/
  50. git checkout -- core/js/dist