Generated Project Commands
All commands available in a generated experiment project. Run them from the project root after pnpm install.
Development
| Command | What it does |
|---|---|
pnpm start 0 | Watch variation 1 (src/js/v1/). Rebuilds on save and copies IIFE bundle to clipboard. |
pnpm start 1 | Watch variation 2 (src/js/v2/). Clipboard copy enabled. |
pnpm start N | Watch variation N+1. The argument is zero-indexed. |
pnpm dev | Watch all variations simultaneously. No clipboard copy. |
Build
| Command | What it does |
|---|---|
pnpm build | Production build. Runs Biome lint first. Builds all variations to dist/. Aborts on lint errors. |
Build output:
dist/
├── v1/v1.js ← IIFE bundle for variation 1
├── v2/v2.js ← IIFE bundle for variation 2
└── vN/vN.jsLinting
| Command | What it does |
|---|---|
pnpm lint | Runs biome check src/. Reports violations. Exits non-zero if any errors are found. |
pnpm format | Runs biome check --write src/. Auto-fixes formatting violations in place. |
Testing
| Command | What it does | Available |
|---|---|---|
pnpm test:e2e | Runs Playwright tests in e2e/. | Only when E2E was enabled at scaffold time |
Notes
pnpm buildis the only command that enforces a clean lint gate (build aborts on lint errors).pnpm lintin watch mode reports errors but does not abort the watcher.- All commands require Node 20+ and pnpm 10.30.1. Run
nvm use 24first if you're on an older Node.