mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 17:12:33 +08:00
64 lines
1.5 KiB
JSON
64 lines
1.5 KiB
JSON
{
|
|
"name": "cf-page",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/cf-page/src",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nrwl/vite:build",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"outputPath": "dist/apps/cf-page"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"mode": "development"
|
|
},
|
|
"production": {
|
|
"mode": "production"
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nrwl/vite:dev-server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "cf-page:build"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "cf-page:build:development",
|
|
"hmr": true
|
|
},
|
|
"production": {
|
|
"buildTarget": "cf-page:build:production",
|
|
"hmr": false
|
|
}
|
|
}
|
|
},
|
|
"serve-cf-page": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "wrangler pages dev dist/apps/cf-page"
|
|
},
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"test": {
|
|
"executor": "@nrwl/vite:test",
|
|
"outputs": ["{projectRoot}/coverage"],
|
|
"options": {
|
|
"passWithNoTests": true
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["apps/cf-page/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|