Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonybudianto/react-lib-starter
📦 React library starter with monorepo structure, using Lerna as package manager. Used react-lib-scripts.
https://github.com/antonybudianto/react-lib-starter
babel lerna react react-lib-scripts reactjs webpack
Last synced: 25 days ago
JSON representation
📦 React library starter with monorepo structure, using Lerna as package manager. Used react-lib-scripts.
- Host: GitHub
- URL: https://github.com/antonybudianto/react-lib-starter
- Owner: antonybudianto
- License: mit
- Created: 2018-06-17T03:31:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-19T12:58:38.000Z (over 6 years ago)
- Last Synced: 2024-04-11T21:11:14.949Z (7 months ago)
- Topics: babel, lerna, react, react-lib-scripts, reactjs, webpack
- Language: JavaScript
- Homepage:
- Size: 236 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-lib-starter
React library starter with monorepo structure, using Lerna as package manager.
## What's inside
The starter packages:
- example-lib (the lib source code)
- example-app (plain CRA, linked to example-lib)The library tooling:
- [react-lib-scripts](https://github.com/antonybudianto/react-lib-scripts)## How to use
1. Clone this repo
2. Install dependencies
```sh
# yarn is fine too
npm i
```
3. Run bootstrap
```sh
npm run bootstrap
```This will bootstrap and link between app and lib
4. Now, it's ready!## Dev flow
1. Change dir to `packages/example-lib`
2. Run start
```sh
npm start
```
3. Change dir to `packages/example-app`
```sh
npm start
```
4. Try changing the lib, it should reflect the changes directly
5. Now, you can start developing your React library!## Prod flow
1. Make sure you've commited all the changes
2. Change dir to root of this repo
3. Run release (it will run `npm run build` first via `prerelease` hook)
```sh
npm run release
```## License
MIT