Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/christoferolaison/react-lib-boilerplate

Boilerplate for creating React and JavaScript packages with ease 🥑
https://github.com/christoferolaison/react-lib-boilerplate

flow javascript javascript-library jest npm npm-package react

Last synced: 10 days ago
JSON representation

Boilerplate for creating React and JavaScript packages with ease 🥑

Awesome Lists containing this project

README

        

# react-lib-boilerplate
## Setup

### Git

#### Clone with possibility to merge future updates
```bash
cd YOUR_NEW_PROJECT
git clone https://github.com/christoferolaison/react-lib-boilerplate.git --origin upstream .
git remote add origin [email protected]:USER_NAME/YOUR_PROJECT.git
git branch -u origin/master
git push origin master
```
##### Resolve conflicts
```bash
git checkout --ours PATH_TO_FILE
```

#### Clone without possibility to merge future updates but with fresh history
```bash
cd YOUR_NEW_PROJECT
git clone https://github.com/christoferolaison/react-lib-boilerplate.git .
rm -rf .git
git remote add origin [email protected]:USER_NAME/YOUR_PROJECT.git
git push --set-upstream origin master
```

### Scripts

npm run build
npm run dev
npm run lint
npm run flow
npm run release
npm run test
npm run test:watch

### Publish
1. Change name of package in package.json.
2. npm run publish and follow instructions.

### Development
### Related
- [Video course about how to publish packages on npm](https://egghead.io/courses/publish-javascript-packages-on-npm)
- [create-react-app](https://github.com/facebookincubator/create-react-app)