create-react-libary
v1.0.5
Published
Create a modern React component library with Vite + TypeScript
Downloads
8
Maintainers
Readme
create-react-libary 🚀
Create a modern React component library with Vite + TypeScript in seconds!
Usage
npx create-react-libaryOr with a project name:
npx create-react-libary my-awesome-libWhat You Get
- ⚡ Vite - Lightning-fast builds
- 🔷 TypeScript - Full type support with
.d.tsgeneration - ⚛️ React 19 - Latest React support
- 📦 Multiple formats - ESM, CJS, UMD
- 🎨 CSS bundled - Styles included
- 🧪 Example app - Test your library like a real user
After Creation
Terminal 1: Compile library
cd my-awesome-lib
npm install
npm run build:watchTerminal 2: Run example app
cd my-awesome-lib/example
npm install
npm run devOpens at http://localhost:3001
Project Structure
my-awesome-lib/
├── lib/ # Your library source code
│ ├── components/
│ ├── hooks/
│ └── main.ts
├── example/ # Test app (like user's project)
└── dist/ # Built outputPublishing
npm run build
npm publishLicense
MIT
