Skip to content

feat(cli): add GitHub source registries, add-file, and eject#38

Merged
jal-co merged 3 commits into
mainfrom
feat/github-source-registries
Jun 3, 2026
Merged

feat(cli): add GitHub source registries, add-file, and eject#38
jal-co merged 3 commits into
mainfrom
feat/github-source-registries

Conversation

@jal-co

@jal-co jal-co commented Jun 3, 2026

Copy link
Copy Markdown
Owner

What

Adds first-class support for the two latest shadcn updates:

  • GitHub source registries (June 2026) — a new github distribution target. A public repo is the registry: no framework app, no shadcn build, no published JSON, no server. Scaffolds a minimal repo and emits npx shadcn add <owner>/<repo>/<item> install commands everywhere. New flags: --target, --github [owner/repo], --github-slug, plus a Distribution prompt.
  • add-file — distribute arbitrary registry:file items (project conventions, CI workflows, agent instructions, ~/-targeted files), supporting --file path:target (repeatable) and --target.
  • eject (May 2026) — a package-manager-aware passthrough to shadcn eject (inline shadcn/tailwind.css, drop the shadcn dep), with -c <workspace> for monorepos.

Install-command resolution now auto-detects a github.com homepage across add-component, llms.txt, and .scn-stack.json. Bumps the package to 0.12.0 (also releasing the previously-unreleased 0.11.0 work).

Why

The June 2026 GitHub source-registry model is the new default path for "I just want to share components from a repo," and scn-stack was over-scaffolding (framework app + build + host) for that case. This makes the build-less path a first-class target and lets registries distribute non-component items.

Closes #

Type

  • feat — New feature

Checklist

  • Branch follows conventional naming (feat/, fix/, docs/, etc.)
  • Commits follow Conventional Commits
  • npm run lint passes
  • npm test passes
  • Tests added or updated (if changing behaviour)
  • Docs updated (if changing flags, prompts, or generator output)

Screenshots

  ◇  ✓ demo-ui created ──────────────────────────────────╮
  │  Target:        GitHub source registry               │
  │  Repo slug:     acme/toolkit                          │
  │  Push this repo to GitHub, then users install with:   │
  │  npx shadcn@latest add acme/toolkit/button            │
  │  No build step. Commit + push is the publish step.    │
  ╰───────────────────────────────────────────────────────╯

jal-co added 3 commits June 2, 2026 19:25
Support the June 2026 GitHub source registry model and the May 2026
shadcn eject command.

- Add a "github" distribution target: a public repo is the registry, with
  no framework app, build step, published JSON, or server. Scaffolds a
  minimal repo and emits `npx shadcn add <owner>/<repo>/<item>` install
  commands. Flags: --target, --github [owner/repo], --github-slug.
- Add `add-file` to distribute arbitrary registry:file items (conventions,
  CI workflows, agent instructions, ~/-targeted files).
- Add `eject` as a package-manager-aware passthrough to `shadcn eject`.
- Install commands now auto-detect a github.com homepage across
  add-component, llms.txt, and .scn-stack.json.

Bumps the package to 0.12.0.
- args parsing for --target / --github / --github-slug
- githubSlugFromHomepage + GitHub-aware installCommand
- integration tests for the minimal GitHub scaffold and add-file
Add cli/github-registries.mdx and cli/eject.mdx, a Distribution prompt
section, updated options/flags tables, landing-page callout, and README
features.
@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
scn-stack Ready Ready Preview, Comment Jun 3, 2026 2:35am

Request Review

@github-actions github-actions Bot added docs Documentation changes feature New feature or enhancement website Changes to www/ (scnstack.sh) test Tests labels Jun 3, 2026
@jal-co jal-co merged commit 0f0c650 into main Jun 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation changes feature New feature or enhancement test Tests website Changes to www/ (scnstack.sh)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant