@sandeep-jaiswar/dev-cli
v0.0.1
Published
CLI for scaffolding internal React apps and components
Maintainers
Readme
@sandeep-jaiswar/dev-cli
A fast, opinionated developer CLI to scaffold React apps and components consistently across your organization.
✨ Features
- ⚡️ Fast scaffolding powered by Bun and ESBuild
- 📦 Create production-ready React apps in seconds
- 🧱 Generate reusable React components with proper folder structure
- 🧹 Enforces code standards with ESLint, Prettier, and lint-staged
- 🔧 Zero-config setup via CLI prompts
- 🚀 Built with DX and scalability in mind
📦 Installation
bun add -g @sandeep-jaiswar/dev-cli🚀 Usage
Create a new React App
dev-cli create-appFollow the interactive prompts to scaffold a new React + Vite app.
Generate a React Component
dev-cli generate-componentChoose the component name and type (function or compound), and the CLI will generate the boilerplate inside src/components/.
🛠 Tech Stack
🗂 Project Structure
src/
├── commands/
│ ├── create-app.ts
│ └── generate-component.ts
├── utils/
│ └── copyAndReplaceTemplate.ts
├── templates/
│ ├── react-app/
│ └── react-component/
└── index.ts🧪 Development
Install dependencies:
bun installBuild the CLI:
bun run buildRun locally:
bun run dev🔄 Releasing
We use Changesets for versioning and publishing.
To prepare a release:
bunx changesetThen create a PR. Merging to main will trigger GitHub Actions to publish.
📄 License
MIT © Sandeep Jaiswar
