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-components
for 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 start
to start developing your componentsyarn test
to test your componentsyarn lint
to lint 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 when production bundle is created