Makefile 1.5 KB

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