Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 apps/accessibility/js/
  23. rm -rf apps/comments/js/
  24. rm -rf apps/dav/js/
  25. rm -rf apps/files/js/dist/
  26. rm -rf apps/files_sharing/js/dist/
  27. rm -rf apps/files_trashbin/js/
  28. rm -rf apps/files_versions/js/
  29. rm -rf apps/oauth2/js/
  30. rm -rf apps/settings/js/vue-*
  31. rm -rf apps/systemtags/js/systemtags.*
  32. rm -rf apps/twofactor_backupcodes/js
  33. rm -rf apps/updatenotification/js/updatenotification.*
  34. rm -rf apps/user_status/js/
  35. rm -rf apps/workflowengine/js/
  36. rm -rf core/js/dist
  37. clean-git: clean
  38. git checkout -- apps/accessibility/js/
  39. git checkout -- apps/comments/js/
  40. git checkout -- apps/dav/js/
  41. git checkout -- apps/files/js/dist/
  42. git checkout -- apps/files_sharing/js/dist/
  43. git checkout -- apps/files_trashbin/js/
  44. git checkout -- apps/files_versions/js/
  45. git checkout -- apps/oauth2/js/
  46. git checkout -- apps/settings/js/vue-*
  47. git checkout -- apps/systemtags/js/systemtags.*
  48. git checkout -- apps/twofactor_backupcodes/js
  49. git checkout -- apps/updatenotification/js/updatenotification.*
  50. git checkout -- apps/user_status/js/
  51. git checkout -- apps/workflowengine/js/
  52. git checkout -- core/js/dist