Makefile 667 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ifeq (dev, $(ENV))
  2. dc = docker-compose -f docker-compose.yml -f docker-compose.dev.yml
  3. else
  4. dc = docker-compose
  5. endif
  6. build_shared:
  7. cd shared && npm run build
  8. build_bot: build_shared
  9. cd bot && npm run build
  10. build_web: build_shared
  11. cd web && npm run build
  12. build_local: build_shared build_bot build_web
  13. build:
  14. $(dc) build
  15. start_env: build
  16. $(dc) up db adminer facedetect
  17. start: build
  18. $(dc) up db adminer noctbot web facedetect caddy
  19. start_bot: build
  20. $(dc) up db adminer noctbot facedetect
  21. start_web: build
  22. $(dc) up db adminer web
  23. npmi:
  24. cd shared && npm install
  25. cd bot && npm install
  26. cd web && npm install