Install frontend dependencies if needed
(frontend_dir: Path)
| 200 | |
| 201 | |
| 202 | def install_frontend_deps(frontend_dir: Path): |
| 203 | """Install frontend dependencies if needed""" |
| 204 | node_modules = frontend_dir / "node_modules" |
| 205 | |
| 206 | if not node_modules.exists(): |
| 207 | print("📦 Installing frontend dependencies (first run)...") |
| 208 | npm_cmd = "npm.cmd" if get_platform() == "windows" else "npm" |
| 209 | subprocess.run( |
| 210 | [npm_cmd, "install"], |
| 211 | cwd=frontend_dir, |
| 212 | check=True, |
| 213 | shell=(get_platform() == "windows"), |
| 214 | ) |
| 215 | print("✅ Frontend dependencies installed") |
| 216 | |
| 217 | |
| 218 | def start_backend(backend_dir: Path): |
no test coverage detected