build_project
Converts a single-file HTML rebuild into a runnable Vite, Astro, or Next.js project: sections become components, CSS splits per section, GSAP timelines rewire, and assets carry over.
Instructions
Convert a single-file exact rebuild (any local .html, e.g. the rebuild flow's full-page-exact.html) into a runnable Vite, Astro or Next.js project: sections become components, CSS splits per section, gsap timelines re-wire in the framework idiom (useEffect + gsap.context on Next), assets carried. Reads a local file and writes the project dir. Pairs with verify_build: build → convert → verify.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Directory to scaffold the project into (created as needed) | |
| name | No | package.json name (default rebuild-site) | |
| target | Yes | Framework of the generated project | |
| htmlPath | Yes | Local path to the single-file rebuild html to convert |