Makefile 755 B

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