// 渲染全部示范视频到 out/*.mp4(可指定单个动作:node scripts/render-all.mjs squat) import { execSync } from 'node:child_process' const MOVES = ['squat', 'march', 'jack', 'raise'] const only = process.argv[2] for (const move of MOVES.filter((m) => !only || m === only)) { execSync(`npx remotion render src/index.ts demo-${move} out/${move}.mp4`, { stdio: 'inherit' }) }