A starter kit for creating distributed React component libraries.
- Uses Babel 7 config for ES modules and ES syntax support
- Support for Create React App (CRA) projects out of the box
- Support for CSS/SCSS modules (
component.module.scss
) and importing dependency library styles such as Semantic UI CSS - Uses Webpack to obfuscate and compress the build into a ready-to-distribute npm module
- Clone the repo:
git clone https://github.com/tamert/react-starter.git
- Run
yarn
to install dev dependencies. Add more as needed. - Run
yarn start
to develop.
- Modify the README.md as documentation for your component library which will be published with your distributed build.
- Modify CONTRIBUTING.md as internal documentation for your team or contributors.
- Update the name of your package and version in
package.json
. - Make sure to commit changes before publishing since publishing resets your git to a clean state after building.
- Run
npm publish
to publish your distributed build.
MIT