60 lines
1.5 KiB
JSON
60 lines
1.5 KiB
JSON
{
|
|
"name": "frontend",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/frontend",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/next:build",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"outputPath": "dist/apps/frontend",
|
|
"postcssConfig": "apps/frontend/postcss.config.js"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"outputPath": "apps/frontend"
|
|
},
|
|
"production": {}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nx/next:server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "frontend:build",
|
|
"dev": true
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "frontend:build:development",
|
|
"dev": true
|
|
},
|
|
"production": {
|
|
"buildTarget": "frontend:build:production",
|
|
"dev": false
|
|
}
|
|
}
|
|
},
|
|
"export": {
|
|
"executor": "@nx/next:export",
|
|
"options": {
|
|
"buildTarget": "frontend:build:production"
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "apps/frontend/jest.config.ts"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"outputs": ["{options.outputFile}"]
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|