0.0.1 โ€ข Published 6 months ago

@sandeep-jaiswar/dev-cli v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

@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

0.0.1

6 months ago