Makefile 501 B

123456789101112131415161718192021222324252627282930313233343536
  1. # SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. all: clean dev-setup build-js-production
  4. # Dev env management
  5. dev-setup: clean npm-init
  6. npm-init:
  7. npm ci
  8. npm-update:
  9. npm update
  10. # Building
  11. build-js:
  12. npm run dev
  13. build-js-production:
  14. npm run build
  15. watch-js:
  16. npm run watch
  17. # Linting
  18. lint-fix:
  19. npm run lint:fix
  20. lint-fix-watch:
  21. npm run lint:fix-watch
  22. # Cleaning
  23. clean:
  24. rm -rf dist
  25. clean-git: clean
  26. git checkout -- dist