ruler-progress-render
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRuler Progress Render
尺子进度渲染
Workflow
工作流
- Use from this skill.
scripts/render_ruler_progress.sh - Pass as the first argument when the user specifies a folder; otherwise use current directory.
workspace_dir - Pass as the second argument when the user specifies output; otherwise use
output_path.out/scaffold-demo-defaults-transparent.mov - Run the script and wait for completion.
- Return the final absolute output path printed by the script.
- 使用本技能中的脚本。
scripts/render_ruler_progress.sh - 当用户指定文件夹时将作为第一个参数传入,否则使用当前目录。
workspace_dir - 当用户指定输出路径时将作为第二个参数传入,否则使用
output_path。out/scaffold-demo-defaults-transparent.mov - 运行脚本并等待执行完成。
- 返回脚本输出的最终绝对输出路径。
Command
命令
bash
bash scripts/render_ruler_progress.sh [workspace_dir] [output_path]bash
bash scripts/render_ruler_progress.sh [workspace_dir] [output_path]Behavior
行为说明
- Reuse local repo if exists; otherwise clone from GitHub.
workspace_dir/ruler-progress-animator - Track remote default branch () when updating existing repo.
origin/HEAD - Install npm dependencies.
- If is available, run the new scaffold flow:
bunxnpm run remotion:ensure-browserREMOTION_OUTPUT=... REMOTION_PROPS_FILE=shared/project/render-presets/default.json npm run remotion:render
- This flow reuses shared Chrome Headless Shell cache and avoids repeated browser downloads.
- If is unavailable, fallback to
bunxwith equivalent defaults as a compatibility path (without shared browser cache optimization).npx remotion render
- 如果存在则复用本地仓库,否则从GitHub克隆。
workspace_dir/ruler-progress-animator - 更新现有仓库时跟踪远程默认分支()。
origin/HEAD - 安装npm依赖。
- 如果可用,运行新的脚手架流程:
bunxnpm run remotion:ensure-browserREMOTION_OUTPUT=... REMOTION_PROPS_FILE=shared/project/render-presets/default.json npm run remotion:render
- 该流程会复用共享的Chrome Headless Shell缓存,避免重复下载浏览器。
- 如果不可用,回退到使用
bunx及等效默认参数的兼容路径(无共享浏览器缓存优化)。npx remotion render
Requirements
依赖要求
gitnodenpm- network access for clone/update and dependency install
gitnodenpm- 网络连接,用于克隆/更新仓库和安装依赖