Skip to content

Conversation

Copy link

Copilot AI commented May 26, 2025

This PR implements a shadcn registry system for the Cuicui UI components, allowing them to be easily installed in other projects using the shadcn CLI.

Changes

  • Created a registry.json file with shadcn configuration
  • Added a custom build script (build-shadcn-registry.js) that generates shadcn-compatible component registry
  • Updated the package.json build scripts to include registry generation as part of the build process
  • Added a new justfile command build-ui-registry for convenient registry building
  • Created comprehensive documentation explaining the registry system and how to use it

How it works

The new build process scans the component directories and generates a shadcn-compatible registry with:

  • A main registry.json file listing all available components
  • Individual component files with metadata about components and their variants
  • Proper shadcn format for component imports and usage

Usage

Components can now be added to other projects using:

# Install a specific component
npx shadcn add button --from=https://raw.githubusercontent.com/damien-schneider/cuicui/main/packages/ui/registry

# Or explore available components
npx shadcn add --from=https://raw.githubusercontent.com/damien-schneider/cuicui/main/packages/ui/registry

Fixes #82.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@damien-schneider-coolify
Copy link

damien-schneider-coolify bot commented May 26, 2025

The preview deployment is in progress. 🟡

Open Build Logs

Last updated at: 2025-05-26 19:47:38 CET

Co-authored-by: damien-schneider <74979845+damien-schneider@users.noreply.github.com>
package.json Outdated
"devDependencies": {
"@biomejs/biome": "1.9.2",
"@vitejs/plugin-react": "4.3.1",
"shadcn": "^2.5.0",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"shadcn": "2.6.0-canary.2",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the shadcn version to 2.6.0-canary.2 in commit 142b1ee.

package.json Outdated
"@biomejs/biome": "1.9.2",
"@vitejs/plugin-react": "4.3.1",
"shadcn": "^2.5.0",
"shadcn-ui": "^0.9.5",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use "shadcn-ui" it is the old package I think

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the shadcn-ui package in commit 142b1ee.

Copilot AI and others added 2 commits May 26, 2025 19:00
Co-authored-by: damien-schneider <74979845+damien-schneider@users.noreply.github.com>
Co-authored-by: damien-schneider <74979845+damien-schneider@users.noreply.github.com>
Copilot AI changed the title [WIP] [feat]: Convert the build logic into shadcn registry feat: Convert build logic into shadcn registry May 26, 2025
Copilot AI requested a review from damien-schneider May 26, 2025 19:02
Co-authored-by: damien-schneider <74979845+damien-schneider@users.noreply.github.com>
Copy link
Author

Copilot AI commented May 26, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.fwupd.org
    • Triggering command: /usr/bin/fwupdmgr refresh (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

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.

[feat]: Convert the build logic into shadcn registry

2 participants