This library is published on npm and demonstrates how to write your own React components in TypeScript and publish them as npm package.
- React components written in TypeScript
- Leverages TSDX to create library
- Use of
styled-componentsfor styling - Connected with Storybook
- Integrated tests with Jest and Testing Library
- Linting support using Prettier
- Integrated Continuous Integration (CI) using GitHub Actions
- Integrated Continuous Deployment (CD) to using Github Actions
- Uses Semantic Release for releasing the library
- Publishes to npm
- Publishes Storybook to Chromatic
yarn installto install the necessary dependenciesyarn startto start developing your componentsyarn testto test your componentsyarn lintto lint your codeyarn lint --fixto fix linting issues in your codeyarn prepareto create the production bundleyarn storybookto startstorybookin development mode (starts as a new process)yarn build-storybookto create production version of storybook for the project. This can be deployment to platforms such as Vercel, Gatsby, Surge, or Firebase hostingyarn sizetells you size of your library for the production bundle