Refactor process termination in SimulationRunner to support cross-platform handling and improve code clarity. Update development script to ensure concurrent processes are terminated correctly.

This commit is contained in:
666ghj
2025-12-30 17:45:27 +08:00
parent 8bd768718e
commit 4be144c3f2
2 changed files with 63 additions and 28 deletions

View File

@@ -6,7 +6,7 @@
"setup": "npm install && cd frontend && npm install",
"setup:backend": "cd backend && uv sync",
"setup:all": "npm run setup && npm run setup:backend",
"dev": "concurrently -n \"backend,frontend\" -c \"yellow,cyan\" \"npm run backend\" \"npm run frontend\"",
"dev": "concurrently --kill-others -n \"backend,frontend\" -c \"yellow,cyan\" \"npm run backend\" \"npm run frontend\"",
"backend": "cd backend && uv run python run.py",
"frontend": "cd frontend && npm run dev",
"build": "cd frontend && npm run build"