shadcn-helper
v0.5.5
Published
A command line helper for Shadcn UI CLI, `git commit` modified component codes only.
Maintainers
Readme
ShadcnX CLI
A command line helper for Shadcn UI CLI, git commit modified component codes only.
Features
- 🚀 Automatic framework detection (React, Vue, Svelte)
- 📦 Smart CLI selection based on
components.json#$schemaorpackage.json - 🔧 Git-friendly: only commits modified component codes
Installation
npm i shadcn-helper -gFramework Detection
ShadcnX automatically detects your project's framework and uses the appropriate CLI:
- React uses
shadcnCLI with schemahttps://ui.shadcn.com/schema.json - Vue uses
shadcn-vueCLI with schemahttps://www.shadcn-vue.com/schema.json - Svelte uses
shadcn-svelteCLI with schemahttps://www.shadcn-svelte.com/schema.json
Detection priority:
- If
components.jsonexists, uses the$schemafield to determine the framework - Otherwise, detects framework from
package.jsondependencies (react,vueorsvelte) - Defaults to React if no framework is detected
Usage
add components
shadcn-helper add official-component-name https://third-party.org/path/to/componentedit a component
shadcn-helper edit component-nameinstall added components
{
"name": "my-web-app",
"private": true,
"scripts": {
"install": "npx shadcn-helper install"
}
}User cases
- https://github.com/idea2app/Next-shadcn-ts

