Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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/user_status/js/
  34. rm -rf apps/workflowengine/js/
  35. rm -rf core/js/dist
  36. clean-dev:
  37. rm -rf node_modules
  38. clean-git: clean
  39. git checkout -- apps/accessibility/js/
  40. git checkout -- apps/comments/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