react-npm-minimal-boilerplate
v2.0.3
Published
Minimal boilerplate for creating React NPM packages
Downloads
50
Maintainers
Readme
Minimal boilerplate for creating React NPM packages
Boilerplate to get started with react NPM package instantly.
Features
- ES6, ES7, ES8 support
- CSS in JS using emotion
- Class properties support
- Decorators support
- ESLint with AirBnB style guide & Prettier
- Transpilation to ES5
- Playground to test & manipulate components in realtime(webpack + react hot loader)
Usage
- Clone the repo:
git clone https://github.com/ganapativs/react-npm-minimal-boilerplate.git my-awesome-react-npm-package && cd $_ - Remove .git:
rm -rf .git - Install dependencies:
yarn - Playground with hot loader:
yarn run dev - Lint:
yarn run lint - Fix lint issues and prettify code 😎:
yarn run lint-fix - Transpilation to ES5 in
distfolder:yarn run prepublish(standard npm hook) - Push package to your own Github repository
- Publish package:
yarn run publish
Todo
- [ ] Test cases
License
MIT
