Repository navigation
feat(weapp): 优化终端开销并完善项目诊断与执行工作流 - #19
Merged
Merged
Conversation
Contributor
|
Preview for this pull request: https://f787c966-weapp-dev.sonofmagic.workers.dev This Worker Version is not production traffic. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npx weapp现在按当前项目提供状态、诊断和经确认的安装/脚本操作,同时减少暂停与输出背压时的终端计算。create --install和--package-manager;创建结果使用真实 manifest。执行前显示 cwd、命令与脚本,检查兼容性并重读项目,取消后清理子进程树;独立创建收到 SIGINT/SIGTERM 时,等待脚手架或安装子孙进程结束后以 130/143 退出。本地验证:338 项 CLI 测试、10 项边界/原生发布流程测试、28 个真实 PTY 场景、后台浏览器实验室,以及 Node 18.20.8/22.23.4/24.22.1 独立 tarball smoke 全部通过。frozen install、构建、类型、lint 和 styles 检查通过;实验室保留 4 条已有 lint warning。
同机 1 秒模拟采样中,暂停/背压的帧计算均从 20 次降到 0;活跃动画 Node CPU 中位数从 104.99ms 降至 61.13ms。帮助/版本仍约 28ms,不将 npm 启动前扫描或脚手架下载计入提速。完整方法与实际验证范围见
docs/weapp-project-workbench-2026-10-22.md。最终提交
7859af9的三组 CI 已全部成功:CLI 完整验证与 Linux/Windows/macOS 的五项发布包矩阵、两站完整回归、商业站 PR 预览,共 9 个适用检查通过。PR 中正式生产部署/Pages 部署按配置跳过。本 PR 不发布 npm。