Skip to content

Fetch CLI templates from main instead of bundling them - #944

Open
AbhinRustagi wants to merge 9 commits into
mainfrom
feat/templates-dx
Open

Fetch CLI templates from main instead of bundling them#944
AbhinRustagi wants to merge 9 commits into
mainfrom
feat/templates-dx

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Today every library version bump means editing the templates and publishing a new CLI just to ship the bump. New model: templates live in the repo and @openuidev/cli create fetches them at scaffold time, so template changes go live the moment they land on main.

  • @openuidev/cli create pulls the template from main via a sparse git clone (~1MB instead of the ~220MB repo tarball), with a codeload tarball fallback when git isn't available
  • Templates no longer ship in the npm package — build-templates.js and the bundling step are removed
  • New workflow: after a package publish, template versions are synced to the workspace package.json versions (repo as source of truth, no npm registry lag), lockfiles regenerated, and a bump PR opened for review
  • Merging that bump PR is the whole release now — no CLI publish needed for version updates

@AbhinRustagi AbhinRustagi self-assigned this Aug 7, 2026
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openui-docs Ready Ready Preview Aug 10, 2026 10:36am

Request Review

@AbhinRustagi AbhinRustagi changed the title fix: delegate CLI template version bump Fetch CLI templates from main instead of bundling them Aug 10, 2026
@AbhinRustagi
AbhinRustagi marked this pull request as ready for review August 10, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant