5666b8f8e4
* chore: add custom export executor for next app * chore: update tsconfig path for export executor
74 lines
1.8 KiB
JSON
74 lines
1.8 KiB
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/trading",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "./tools/executors/next:build",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"root": "apps/trading",
|
|
"outputPath": "dist/apps/trading"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"optimization": true,
|
|
"sourceMap": true
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "./tools/executors/next:serve",
|
|
"options": {
|
|
"buildTarget": "trading:build",
|
|
"dev": true
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"buildTarget": "trading:build:production",
|
|
"dev": false
|
|
}
|
|
}
|
|
},
|
|
"export": {
|
|
"executor": "./tools/executors/next:export",
|
|
"options": {
|
|
"buildTarget": "trading:build:production"
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nrwl/jest:jest",
|
|
"outputs": ["coverage/apps/trading"],
|
|
"options": {
|
|
"jestConfig": "apps/trading/jest.config.ts",
|
|
"passWithNoTests": true
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["apps/trading/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"build-netlify": {
|
|
"executor": "@nrwl/workspace:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"cp apps/trading/netlify.toml netlify.toml",
|
|
"nx build trading"
|
|
]
|
|
}
|
|
},
|
|
"build-spec": {
|
|
"executor": "@nrwl/workspace:run-commands",
|
|
"outputs": [],
|
|
"options": {
|
|
"command": "yarn tsc --project ./apps/trading/tsconfig.spec.json"
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|