shadcn-scaffold
v1.0.4
Published
Scaffold Vite + React + shadcn/ui apps from the terminal
Maintainers
Readme
shadcn-scaffold
Scaffold Vite + React + shadcn/ui apps from the terminal.
Install
Install globally:
npm install -g shadcn-scaffoldOr use Bun:
bun add -g shadcn-scaffoldRun it without a global install:
npx shadcn-scaffold my-app
bunx shadcn-scaffold my-appUsage
Create a new app:
scaffold my-appThe CLI will:
- create a Vite React app
- configure Tailwind CSS
- initialize shadcn/ui
- add the
buttoncomponent - set up a theme provider and theme toggle
- let you optionally install extra packages
Development
Install dependencies:
bun installRun the CLI locally:
bun run dev -- my-appBuild the publishable output:
bun run buildPublish
This package publishes a scaffold command, even though the npm package name is shadcn-scaffold.
{
"bin": {
"scaffold": "./dist/index.js"
}
}