react-lite-lib-template
v0.0.4
Published
Minimal setup for building React components with TypeScript and Vite.
Readme
React Component Library Template
Minimal setup for building React components with TypeScript and Vite.
Features
- React + TypeScript
- Vite for fast builds
- ESLint and type checking
- Library mode: outputs ES modules for each component
- Storybook for interactive component development and documentation
Getting Started
- Install dependencies:
npm install - Start dev server:
npm run dev - Run Storybook:
This will start Storybook for interactive component development and documentation.npm run storybook - Build Storybook:
This will generate a static Storybook site in thenpm run build-storybookstorybook-staticfolder. - Build library:
npm run build
Usage
Import components directly from the npm package in your app or other projects:
import { Button, Header, Page } from 'react-lite-lib-template';