chore: configure VS Code launch tasks
This commit is contained in:
1 parent
5123b7bdd7
commit
a4a1e73b8e
4 files changed
+78
-24
No files matched your search
@@ -3,6 +3,7 @@
|
|||||||
!.vscode/launch.json
|
!.vscode/launch.json
|
||||||
!.vscode/tasks.json
|
!.vscode/tasks.json
|
||||||
!.vscode/extensions.json
|
!.vscode/extensions.json
|
||||||
|
!.vscode/settings.json
|
||||||
frontend-web/.vscode/
|
frontend-web/.vscode/
|
||||||
node_modules/
|
node_modules/
|
||||||
# Claude Code local-only settings (per-user permissions, not shared)
|
# Claude Code local-only settings (per-user permissions, not shared)
|
||||||
|
|||||||
Vendored
+17
-18
@@ -2,7 +2,7 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "DeerFlow Backend FastAPI (8001)",
|
"name": "DeerFlow: Backend FastAPI (8001)",
|
||||||
"type": "debugpy",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "uvicorn",
|
"module": "uvicorn",
|
||||||
@@ -19,46 +19,45 @@
|
|||||||
"envFile": "${workspaceFolder}/offline-backend-20260512/.env",
|
"envFile": "${workspaceFolder}/offline-backend-20260512/.env",
|
||||||
"env": {
|
"env": {
|
||||||
"PYTHONPATH": "${workspaceFolder}/offline-backend-20260512/backend;${workspaceFolder}/offline-backend-20260512/backend/.deer-flow/python-vendor",
|
"PYTHONPATH": "${workspaceFolder}/offline-backend-20260512/backend;${workspaceFolder}/offline-backend-20260512/backend/.deer-flow/python-vendor",
|
||||||
"GATEWAY_CORS_ORIGINS": "http://localhost:5174,http://127.0.0.1:5174,http://localhost:8080,http://127.0.0.1:8080"
|
"GATEWAY_CORS_ORIGINS": "http://localhost:5174,http://127.0.0.1:5174,http://localhost:8080,http://127.0.0.1:8080",
|
||||||
|
"UV_LINK_MODE": "copy",
|
||||||
|
"WEKNORA_ADMIN_PASSWORD": "1qaz@WSX"
|
||||||
},
|
},
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"justMyCode": false,
|
"justMyCode": false,
|
||||||
"subProcess": true
|
"subProcess": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "DeerFlow Frontend Vite (5174)",
|
"name": "DeerFlow: Frontend Vite (5174)",
|
||||||
"type": "node",
|
"type": "node-terminal",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "pnpm",
|
"command": "npm run dev -- --host 0.0.0.0 --port 5174",
|
||||||
"runtimeArgs": [
|
|
||||||
"exec",
|
|
||||||
"vite",
|
|
||||||
"--host",
|
|
||||||
"0.0.0.0",
|
|
||||||
"--port",
|
|
||||||
"5174"
|
|
||||||
],
|
|
||||||
"cwd": "${workspaceFolder}/frontend-web",
|
"cwd": "${workspaceFolder}/frontend-web",
|
||||||
"env": {
|
"env": {
|
||||||
"VITE_BACKEND_BASE_URL": "http://127.0.0.1:8001",
|
"VITE_BACKEND_BASE_URL": "http://127.0.0.1:8001",
|
||||||
"VITE_LANGGRAPH_BASE_URL": "http://127.0.0.1:8001/api"
|
"VITE_LANGGRAPH_BASE_URL": "http://127.0.0.1:8001/api"
|
||||||
},
|
},
|
||||||
"console": "integratedTerminal",
|
|
||||||
"outputCapture": "std",
|
|
||||||
"serverReadyAction": {
|
"serverReadyAction": {
|
||||||
"pattern": "Local:\\s+(https?://[^\\s]+)",
|
"pattern": "Local:\\s+(https?://[^\\s]+)",
|
||||||
"uriFormat": "%s",
|
"uriFormat": "%s",
|
||||||
"action": "debugWithChrome",
|
"action": "debugWithChrome",
|
||||||
"webRoot": "${workspaceFolder}/frontend-web"
|
"webRoot": "${workspaceFolder}/frontend-web"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "DeerFlow: Open Frontend in Chrome",
|
||||||
|
"type": "pwa-chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"url": "http://127.0.0.1:5174/",
|
||||||
|
"webRoot": "${workspaceFolder}/frontend-web"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"compounds": [
|
"compounds": [
|
||||||
{
|
{
|
||||||
"name": "DeerFlow Full Stack (Backend + Frontend)",
|
"name": "DeerFlow: Full Stack (Backend + Frontend)",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
"DeerFlow Backend FastAPI (8001)",
|
"DeerFlow: Backend FastAPI (8001)",
|
||||||
"DeerFlow Frontend Vite (5174)"
|
"DeerFlow: Frontend Vite (5174)"
|
||||||
],
|
],
|
||||||
"stopAll": true
|
"stopAll": true
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"python.defaultInterpreterPath": "${workspaceFolder}/offline-backend-20260512/backend/.venv/Scripts/python.exe",
|
||||||
|
"python.terminal.activateEnvironment": true,
|
||||||
|
"typescript.tsdk": "frontend-web/node_modules/typescript/lib",
|
||||||
|
"npm.packageManager": "npm"
|
||||||
|
}
|
||||||
Vendored
+54
-6
@@ -2,9 +2,9 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "DeerFlow:检查本地开发环境",
|
"label": "DeerFlow: Check Local Dev Environment",
|
||||||
"type": "shell",
|
"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",
|
"command": "$backendPython = '${workspaceFolder}\\offline-backend-20260512\\backend\\.venv\\Scripts\\python.exe'; if (-not (Test-Path -LiteralPath $backendPython)) { throw 'Backend virtual environment is missing. Run uv sync in offline-backend-20260512/backend first.' }; & $backendPython -c \"import uvicorn; print('Backend Python OK')\"; npm --prefix '${workspaceFolder}\\frontend-web' exec vite -- --version",
|
||||||
"options": {
|
"options": {
|
||||||
"shell": {
|
"shell": {
|
||||||
"executable": "powershell.exe",
|
"executable": "powershell.exe",
|
||||||
@@ -19,10 +19,38 @@
|
|||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "DeerFlow:前端生产构建",
|
"label": "DeerFlow: Install Frontend Dependencies",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "pnpm",
|
"command": "npm",
|
||||||
"args": [
|
"args": [
|
||||||
|
"ci",
|
||||||
|
"--no-audit",
|
||||||
|
"--no-fund"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/frontend-web"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "DeerFlow: Frontend Typecheck",
|
||||||
|
"type": "process",
|
||||||
|
"command": "npm",
|
||||||
|
"args": [
|
||||||
|
"run",
|
||||||
|
"typecheck"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/frontend-web"
|
||||||
|
},
|
||||||
|
"problemMatcher": "$tsc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "DeerFlow: Frontend Build",
|
||||||
|
"type": "process",
|
||||||
|
"command": "npm",
|
||||||
|
"args": [
|
||||||
|
"run",
|
||||||
"build"
|
"build"
|
||||||
],
|
],
|
||||||
"options": {
|
"options": {
|
||||||
@@ -31,7 +59,26 @@
|
|||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "DeerFlow:WeKnora 专项测试",
|
"label": "DeerFlow: Backend Tests",
|
||||||
|
"type": "process",
|
||||||
|
"command": "${workspaceFolder}/offline-backend-20260512/backend/.venv/Scripts/python.exe",
|
||||||
|
"args": [
|
||||||
|
"-m",
|
||||||
|
"pytest",
|
||||||
|
"tests/",
|
||||||
|
"-v"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/offline-backend-20260512/backend",
|
||||||
|
"env": {
|
||||||
|
"PYTHONPATH": ".",
|
||||||
|
"WEKNORA_ADMIN_PASSWORD": "1qaz@WSX"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "DeerFlow: WeKnora Backend Tests",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "${workspaceFolder}/offline-backend-20260512/backend/.venv/Scripts/python.exe",
|
"command": "${workspaceFolder}/offline-backend-20260512/backend/.venv/Scripts/python.exe",
|
||||||
"args": [
|
"args": [
|
||||||
@@ -43,7 +90,8 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/offline-backend-20260512/backend",
|
"cwd": "${workspaceFolder}/offline-backend-20260512/backend",
|
||||||
"env": {
|
"env": {
|
||||||
"PYTHONPATH": "."
|
"PYTHONPATH": ".",
|
||||||
|
"WEKNORA_ADMIN_PASSWORD": "1qaz@WSX"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
|||||||
Reference in new issue
Block a user