https://github.com/maxatwork/react-library-template
Simple template for react components library
https://github.com/maxatwork/react-library-template
Last synced: 11 months ago
JSON representation
Simple template for react components library
- Host: GitHub
- URL: https://github.com/maxatwork/react-library-template
- Owner: maxatwork
- License: isc
- Created: 2022-07-09T17:45:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-09T17:52:19.000Z (almost 4 years ago)
- Last Synced: 2025-02-25T17:48:45.681Z (over 1 year ago)
- Language: JavaScript
- Size: 170 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# React Component Library Template
Includes:
- react as external dependency (not included in resulting bundle)
- rollup
- TypeScript
- CSS modules support
- Jest support
- Ladle for stories
## Usage
Clone using `degit` to new directory:
```bash
npx degit https://github.com/maxatwork/react-library-template my-react-lib
cd my-react-lib
```
Initialize Git repository:
```bash
git init
```
Install dependencies:
```bash
npm install
```
Create initial commit:
```bash
git add .
git commit -m "Initial commit"
```
Build library:
```bash
npm run build
```
Run tests:
```bash
npm run test
-- OR --
npm run test:watch
```
Run Ladle:
```bash
npm run ladle
```