1.0.4 ā¢ Published 2 years ago
sh-utilities v1.0.4
A template for creating React library
A template that can be used to create React libraries that will be shared across web apps.
šš½ All basic tools included and configured:
- Microbundle for module bundling powered by Rollup.
- ESLint with some initial rules recommendation like CRA eslint config.
- Jest for fast unit testing and code coverage. It uses the react-scripts config for test. Testing libraries are already supported.
- Prettier to enforce consistent code style.
- Lint-staged Run linters against staged git files.
- TypeScript
- Storybook for building UI components in isolation. It streamlines UI development, testing, and documentation. Includes basic config, scripts, and working sample.
- NPM scripts for common operations.
How to use
- Create a github repository and choose create-react-library-template as a template.
- After creating the repo, make sure to update some package.json fields to match the details of the newly created repo.
TODO
- Add Github actions including CI.
- Publish npm registry.
- Storybook build deployment.