Makefile 618 B

1234567891011121314151617181920212223242526272829303132333435
  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:
  13. $(dc) build
  14. start_env: build
  15. $(dc) up db adminer facedetect
  16. start: build
  17. $(dc) up db adminer noctbot web facedetect caddy
  18. start_bot: build
  19. $(dc) up db adminer noctbot facedetect
  20. start_web: build
  21. $(dc) up db adminer web
  22. npmi:
  23. cd shared && npm install
  24. cd bot && npm install
  25. cd web && npm install