Files
edgetunnel/apps/cf-page/project.json
2023-01-02 04:03:26 +08:00

60 lines
1.4 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": {},
"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": []
}