@hhimanshu/ts-react-components-lib
v1.2.0
Published
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) ![npm](https://img.shields.io/npm/v/@hhimanshu/ts-react-components-lib)
Downloads
3
Maintainers
Readme
TypeScript React Component Library
This library is published on npm
and demonstrates how to write your own React components in TypeScript and publish them as npm
package.
Features
- [x] React components written in TypeScript
- [x] Leverages TSDX to create library
- [x] Use of
styled-components
for styling - [x] Connected with Storybook
- [x] Integrated tests with Jest and Testing Library
- [x] Linting support using Prettier
- [x] Integrated Continuous Integration (CI) using GitHub Actions
- [x] Integrated Continuous Deployment (CD) to using Github Actions
- [x] Uses Semantic Release for releasing the library
- [x] Publishes to npm
- [x] Publishes Storybook to Chromatic
Commands
yarn install
to install the necessary dependenciesyarn start
to start developing your componentsyarn test
to test your componentsyarn lint
to lint your codeyarn lint --fix
to fix linting issues in your codeyarn prepare
to create the production bundleyarn storybook
to startstorybook
in development mode (starts as a new process)yarn build-storybook
to create production version of storybook for the project. This can be deployment to platforms such as Vercel, Gatsby, Surge, or Firebase hostingyarn size
tells you size of your library for the production bundle