{
  "name": "psyche-conferencing",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "apps/psyche/conferencing/src",
  "projectType": "application",
  "tags": [
    "scope:psyche",
    "layer:service",
    "type:python",
    "runtime:fastapi",
    "feature:conferencing"
  ],
  "targets": {
    "serve": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry run uvicorn video_conferencing.main:app --reload --host 0.0.0.0 --port 8006"
      }
    },
    "serve-prod": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry run uvicorn video_conferencing.main:app --host 0.0.0.0 --port 8006 --workers 2"
      }
    },
    "build": {
      "executor": "nx:run-commands",
      "outputs": ["{projectRoot}/dist"],
      "options": {
        "cwd": "apps/psyche/conferencing",
        "commands": ["poetry build"]
      }
    },
    "install": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry install"
      }
    },
    "install-all": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry install --extras all && poetry run playwright install chromium"
      }
    },
    "install-zoom": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry install --extras zoom"
      }
    },
    "install-teams": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry install --extras teams"
      }
    },
    "install-meet": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry install --extras meet"
      }
    },
    "lint": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "commands": ["poetry run ruff check src/", "poetry run mypy src/"]
      }
    },
    "format": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "commands": ["poetry run black src/", "poetry run ruff check --fix src/"]
      }
    },
    "test": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry run pytest"
      }
    },
    "test-unit": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry run pytest -m 'not integration and not zoom and not teams and not meet'"
      }
    },
    "test-integration": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry run pytest -m integration"
      }
    },
    "test-cov": {
      "executor": "nx:run-commands",
      "outputs": ["{projectRoot}/htmlcov"],
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "poetry run pytest --cov=video_conferencing --cov-report=html"
      }
    },
    "docker-build": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "docker build -t psyche-conferencing:latest ."
      }
    },
    "docker-run": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/conferencing",
        "command": "docker run -p 8006:8006 --env-file .env --device /dev/video0:/dev/video0 psyche-conferencing:latest"
      }
    }
  }
}
