{
  "name": "@lilith/web",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "apps/lilith/web/src",
  "projectType": "application",
  "tags": ["scope:lilith", "type:app", "platform:web"],
  "targets": {
    "build": {
      "executor": "nx:run-commands",
      "outputs": ["{projectRoot}/out", "{projectRoot}/.next"],
      "options": {
        "cwd": "apps/lilith/web",
        "command": "next build"
      },
      "configurations": {
        "production": {
          "command": "NODE_ENV=production next build"
        },
        "development": {
          "command": "next build --debug"
        }
      }
    },
    "dev": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/web",
        "command": "next dev"
      }
    },
    "start": {
      "executor": "nx:run-commands",
      "dependsOn": ["build"],
      "options": {
        "cwd": "apps/lilith/web",
        "command": "next start"
      }
    },
    "lint": {
      "executor": "@nx/eslint:lint",
      "options": {
        "lintFilePatterns": [
          "apps/lilith/web/src/**/*.{ts,tsx,js,jsx}",
          "apps/lilith/web/__tests__/**/*.{ts,tsx,js,jsx}",
          "apps/lilith/web/scripts/**/*.{ts,tsx,js,jsx}",
          "apps/lilith/web/*.{ts,tsx,js,jsx,mjs,cjs}"
        ]
      }
    },
    "typecheck": {
      "executor": "nx:run-commands",
      "options": {
        "command": "node tools/typecheck/ratchet.mjs --app apps/lilith/web --tsconfig tsconfig.typecheck.json"
      }
    },
    "test": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/web",
        "command": "for i in $(seq 1 32); do NODE_OPTIONS=--expose-gc vitest run --shard=$i/32 || exit 1; done"
      }
    },
    "test:watch": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/web",
        "command": "vitest"
      }
    },
    "test:coverage": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/web",
        "command": "vitest run --coverage"
      }
    },
    "storybook": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/web",
        "command": "storybook dev -p 6006"
      }
    },
    "storybook:build": {
      "executor": "nx:run-commands",
      "outputs": ["{projectRoot}/storybook-static"],
      "options": {
        "cwd": "apps/lilith/web",
        "command": "storybook build"
      }
    },
    "serve-static": {
      "executor": "@nx/web:file-server",
      "dependsOn": ["build"],
      "options": {
        "buildTarget": "@lilith/web:build",
        "staticFilePath": "apps/lilith/web/out",
        "port": 3000
      }
    }
  }
}
