73 lines
1.8 KiB
JSON
73 lines
1.8 KiB
JSON
{
|
|
"name": "frontend",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/frontend/src",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nrwl/vite:build",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"outputPath": "dist/apps/frontend"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"mode": "development"
|
|
},
|
|
"production": {
|
|
"mode": "production"
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nrwl/vite:dev-server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "frontend:build"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "frontend:build:development",
|
|
"hmr": true
|
|
},
|
|
"production": {
|
|
"buildTarget": "frontend:build:production",
|
|
"hmr": false
|
|
}
|
|
}
|
|
},
|
|
"preview": {
|
|
"executor": "@nrwl/vite:preview-server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "frontend:build"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "frontend:build:development"
|
|
},
|
|
"production": {
|
|
"buildTarget": "frontend:build:production"
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nrwl/vite:test",
|
|
"outputs": ["coverage/apps/frontend"],
|
|
"options": {
|
|
"passWithNoTests": true,
|
|
"reportsDirectory": "../../coverage/apps/frontend"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["apps/frontend/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|