Skip to content

feat: add shadcn component registry build system#1008

Draft
pawelgrimm wants to merge 17 commits intomainfrom
pawel/feat/shadcn-registry
Draft

feat: add shadcn component registry build system#1008
pawelgrimm wants to merge 17 commits intomainfrom
pawel/feat/shadcn-registry

Conversation

@pawelgrimm
Copy link
Contributor

Short description

Adds a shadcn-compatible component registry build pipeline. Includes a build:registry script that generates registry JSON items from source components, a version manifest, snapshot tests, and CI integration for PR checks and GitHub Pages deployment.

PR Checklist

  • Added tests for bugs / new features
  • Updated docs (storybooks, readme)
  • Reviewed and approved Chromatic visual regression tests in CI

@pawelgrimm pawelgrimm force-pushed the pawel/refactor/less-to-modules branch 3 times, most recently from 2b3c491 to 4f60671 Compare February 6, 2026 21:24
Base automatically changed from pawel/refactor/less-to-modules to main February 6, 2026 21:45
pawelgrimm and others added 17 commits February 6, 2026 15:45
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
design-tokens, common-types, common-helpers, responsive-props, polymorphism

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix sibling import rewriting (same-directory imports stay relative)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
box, hidden-visually, hidden, divider, heading, text, stack, inline, columns

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tooltip, button, text-link, badge, avatar, loading, prose,
base-field, text-field, text-area, select-field, checkbox-field,
switch-field, password-field

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
banner (+ banner-icon), notice, menu, tabs, modal, toast
Fix import rewriting for file-level imports (banner/banner vs banner/)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Registry served at /r/component-name.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Generates manifest.json with registry version and available items list

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…iting

The previous check compared first path segments to detect same-directory
imports, but this broke when multiple registry items shared a srcDir
(e.g. utils/, icons/). Now checks whether the import target is a file
within the same registry item.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Generated by build:registry, no need to track it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pawelgrimm pawelgrimm force-pushed the pawel/feat/shadcn-registry branch from e69bc51 to 45a8346 Compare February 6, 2026 21:49
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