53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
||
"version": "2.0.0",
|
||
"tasks": [
|
||
{
|
||
"label": "DeerFlow:检查本地开发环境",
|
||
"type": "shell",
|
||
"command": "$backendPython = '${workspaceFolder}\\offline-backend-20260512\\backend\\.venv\\Scripts\\python.exe'; if (-not (Test-Path -LiteralPath $backendPython)) { throw '后端虚拟环境不存在,请先在 backend 目录执行 uv sync' }; & $backendPython -c \"import uvicorn; print('Backend Python OK')\"; pnpm --dir '${workspaceFolder}\\frontend-web' exec vite --version",
|
||
"options": {
|
||
"shell": {
|
||
"executable": "powershell.exe",
|
||
"args": [
|
||
"-NoProfile",
|
||
"-ExecutionPolicy",
|
||
"Bypass",
|
||
"-Command"
|
||
]
|
||
}
|
||
},
|
||
"problemMatcher": []
|
||
},
|
||
{
|
||
"label": "DeerFlow:前端生产构建",
|
||
"type": "process",
|
||
"command": "pnpm",
|
||
"args": [
|
||
"build"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}/frontend-web"
|
||
},
|
||
"problemMatcher": []
|
||
},
|
||
{
|
||
"label": "DeerFlow:WeKnora 专项测试",
|
||
"type": "process",
|
||
"command": "${workspaceFolder}/offline-backend-20260512/backend/.venv/Scripts/python.exe",
|
||
"args": [
|
||
"-m",
|
||
"pytest",
|
||
"tests/test_llmwiki_weknora.py",
|
||
"-v"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}/offline-backend-20260512/backend",
|
||
"env": {
|
||
"PYTHONPATH": "."
|
||
}
|
||
},
|
||
"problemMatcher": []
|
||
}
|
||
]
|
||
}
|