Makefile 297 B

123456789101112131415161718192021
  1. define delete-files
  2. python -c "import shutil;shutil.rmtree('$(1)', ignore_errors=True)"
  3. endef
  4. codestyle:
  5. npm install
  6. npx eslint --fix main.js js/*
  7. npx stylelint style.css
  8. clean:
  9. $(call delete-files,dist)
  10. deps:
  11. npm install
  12. build:
  13. npx vite build
  14. dist: deps clean build
  15. .PHONY: codestyle