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 startto start developing your componentsyarn testto test your componentsyarn lintto lint 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 when production bundle is created