Keep dependency installs responsive

This commit is contained in:
王鹏
2026-10-09 19:31:21 +08:00
parent 6c79ce0b26
commit 66dd1da2d1
4 changed files with 140 additions and 65 deletions

View File

@@ -107,7 +107,7 @@ def build_deployment_plan(scan: ScanResult, config: DeploymentConfig) -> list[De
steps.append(
DeploymentStep(
f"安装{display_name}依赖",
[npm_command, "install"],
[npm_command, "install", "--no-audit", "--no-fund", "--progress=false"],
frontend.path,
f"安装{display_name} package.json 中的依赖",
kind="frontend_install",
@@ -778,6 +778,8 @@ def run_steps(
on_output(f"\n[{step.label}]{' ' + command_text if command_text else ''}")
if step.input_path:
on_output(f"stdin: {step.input_path}")
if step.kind in {"backend_build", "frontend_install"}:
on_output("依赖下载和构建可能需要几分钟;窗口可继续操作,请留意后续日志。")
if _is_skip_step(step):
on_output(step.description)
continue