Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/denysvuika/react-lib

Project template for a React library
https://github.com/denysvuika/react-lib

boilerplate library react reactjs template

Last synced: 3 months ago
JSON representation

Project template for a React library

Awesome Lists containing this project

README

        

# react-lib

Project template for a React library with TypeScript support

## Features

- [TypeScript](https://www.typescriptlang.org/) support
- [React](https://reactjs.org/) support
- CSS Modules with [PostCSS](https://postcss.org/)
- [ESLint](https://eslint.org/) (with [React](https://reactjs.org/) and [Prettier](https://prettier.io/))
- Unit tests ([Jest](https://jestjs.io/) and [Testing Library](https://testing-library.com/))
- Minified output with [Terser](https://terser.org/)
- Bundle size validation with [size-limit](https://github.com/ai/size-limit)
- Flexible builds with [Rollup](https://www.rollupjs.org/)
- [CHANGELOG.md](https://keepachangelog.com/en/1.0.0/) template

## Getting started

- Clone the project or click "Use this template" button on GitHub
- Update the `package.json` with your project details
- Update `README.md` and `CHANGELOG.md`
- Build the project: `yarn build` or `npm run build`
- Validate output bundle size with `yarn size` or `npm run size`
- Lint the project: `yarn lint` or `npm run lint`
- Run unit tests: `yarn test` or `npm test`