b3014bb98a
Co-authored-by: Edd <edd@vega.xyz>
73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"name": "trading",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/trading",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/next:build",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"outputPath": "dist/apps/trading"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"optimization": true,
|
|
"sourceMap": true
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nx/next:server",
|
|
"options": {
|
|
"buildTarget": "trading:build",
|
|
"dev": true
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"buildTarget": "trading:build:production",
|
|
"dev": false
|
|
}
|
|
}
|
|
},
|
|
"export": {
|
|
"executor": "@nx/next:export",
|
|
"options": {
|
|
"buildTarget": "trading:build:production"
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/apps/trading"],
|
|
"options": {
|
|
"jestConfig": "apps/trading/jest.config.ts"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["apps/trading/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"build-netlify": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"cp apps/trading/netlify.toml netlify.toml",
|
|
"nx build trading"
|
|
]
|
|
}
|
|
},
|
|
"build-spec": {
|
|
"executor": "nx:run-commands",
|
|
"outputs": [],
|
|
"options": {
|
|
"command": "yarn tsc --project ./apps/trading/tsconfig.spec.json"
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|