63 lines
1.6 KiB
JSON
63 lines
1.6 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",
|
|
"tsConfig": "apps/frontend/tsconfig.app.json"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"mode": "development"
|
|
},
|
|
"production": {
|
|
"mode": "production"
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/vite:test",
|
|
"outputs": ["{workspaceRoot}/coverage/apps/frontend"],
|
|
"options": {
|
|
"passWithNoTests": true,
|
|
"reportsDirectory": "../../coverage/apps/frontend",
|
|
"tsConfig": "apps/frontend/tsconfig.spec.json"
|
|
}
|
|
},
|
|
"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}"
|
|
}
|
|
}
|
|
}
|
|
}
|