Skip to content

sandeep-jaiswar/dev-cli

Repository files navigation

@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-app

Follow the interactive prompts to scaffold a new React + Vite app.


Generate a React Component

dev-cli generate-component

Choose the component name and type (function or compound), and the CLI will generate the boilerplate inside src/components/.


🛠 Tech Stack

  • Runtime: Bun
  • Bundler: tsup
  • Build Tooling: ESBuild
  • CLI: Inquirer
  • Automation: GitHub Actions, Changesets

🗂 Project Structure

src/
├── commands/
│   ├── create-app.ts
│   └── generate-component.ts
├── utils/
│   └── copyAndReplaceTemplate.ts
├── templates/
│   ├── react-app/
│   └── react-component/
└── index.ts

🧪 Development

Install dependencies:

bun install

Build the CLI:

bun run build

Run locally:

bun run dev

🔄 Releasing

We use Changesets for versioning and publishing.

To prepare a release:

bunx changeset

Then create a PR. Merging to main will trigger GitHub Actions to publish.


📄 License

MIT © Sandeep Jaiswar

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •