0.0.1 โข Published 6 months ago
@sandeep-jaiswar/dev-cli v0.0.1
@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
0.0.1
6 months ago