Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new registry build command #6350

Merged
merged 16 commits into from
Jan 14, 2025
Merged

feat: add new registry build command #6350

merged 16 commits into from
Jan 14, 2025

Conversation

shadcn
Copy link
Collaborator

@shadcn shadcn commented Jan 14, 2025

Introduces a new npx shadcn build command to run your own registry.

package.json

{
  "name": "acme-registry"
  "scripts": {
    "dev": "next dev --turbopack",
    "registry:build": "shadcn build --output ./public/r"
  }
}

registry.json

{
  "$schema": "https://ui.shadcn.com/schema/registry.json",
  "name": "acme",
  "homepage": "https://acme.com",
  "items": [
    {
      "name": "hello-world",
      "type": "registry:component",
      "title": "Hello World",
      "description": "A simple hello world component",
      "registryDependencies": ["button"],
      "files": [
        {
          "path": "registry/hello-world/hello-world.tsx",
          "type": "registry:component"
        }
      ]
    },
  ]
}

Copy link

vercel bot commented Jan 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
ui ⬜️ Ignored (Inspect) Visit Preview Jan 14, 2025 7:16am

# Conflicts:
#	apps/www/public/schema/registry-item.json
#	apps/www/registry/index.ts
#	apps/www/registry/registry-blocks.ts
#	apps/www/registry/registry-charts.ts
#	apps/www/registry/registry-examples.ts
#	apps/www/registry/registry-hooks.ts
#	apps/www/registry/registry-internal.ts
#	apps/www/registry/registry-lib.ts
#	apps/www/registry/registry-themes.ts
#	apps/www/registry/registry-ui.ts
#	apps/www/scripts/build-registry.mts
#	packages/shadcn/src/registry/schema.ts
@shadcn shadcn marked this pull request as ready for review January 14, 2025 11:55
@shadcn shadcn merged commit cb742e9 into main Jan 14, 2025
6 checks passed
@shadcn shadcn deleted the shadcn/build-command branch January 14, 2025 11:59
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