Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 🥑
- Host: GitHub
- URL: https://github.com/christoferolaison/react-lib-boilerplate
- Owner: christoferolaison
- Created: 2017-08-29T17:32:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T19:18:17.000Z (over 7 years ago)
- Last Synced: 2024-11-07T12:50:12.168Z (2 months ago)
- Topics: flow, javascript, javascript-library, jest, npm, npm-package, react
- Language: JavaScript
- Homepage: https://christoferolaison.github.io/react-lib-boilerplate/
- Size: 117 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)