CityGame/apps/frontend/project.json
Camille 7a9383e87f feat: bootstrap fullstack NX monorepo (Spring Boot + React)
- Add Spring Boot 3.4 backend with health API, CORS, and dev/prod profiles
- Add React 18 + Vite frontend with typed health client
- Configure NX workspace, pnpm, and Docker Compose stacks
- Document stack, commands, and layout in README
- Add .gitignore for Node, Java, Docker, and IDE artifacts
2026-05-29 23:42:03 +02:00

61 lines
1.5 KiB
JSON

{
"name": "frontend",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/frontend/src",
"projectType": "application",
"tags": ["scope:frontend", "type:app"],
"targets": {
"serve": {
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "frontend:build"
},
"configurations": {
"development": {
"buildTarget": "frontend:build:development",
"hmr": true
},
"production": {
"buildTarget": "frontend:build:production",
"hmr": false
}
}
},
"build": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/frontend"
},
"configurations": {
"development": {
"mode": "development"
},
"production": {
"mode": "production"
}
}
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["{workspaceRoot}/coverage/apps/frontend"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/apps/frontend"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
"docker-build": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"command": "docker build -t citygame-frontend -f apps/frontend/Dockerfile .",
"cwd": "{workspaceRoot}"
}
}
}
}