This is a project created as a demo about how to create a basic React Component library supporting theme customisation.
This is the current components available in the live Storybook: https://jacobodeharo.github.io/react-lib/?path=/story/components-base-anchor--primary
Currently implemented on this library:
- Rollup bundler to generate the library bundle.
- Components (Styled components):
- Anchor (Link).
- Button.
- Tabs component container.
- Selector.
- Panel.
- Two basic themes (Gray & Amber) based on Material Design color palettes recommendation.
- Storybook showing those components.
- For the tests: Jest + React Testing Library.
- Basic CI pipeline to deploy The Storybook and the Node Package to GPR (GitHub Package Registry).
This project contains a Storybook to display the component API that it provides. To run it you have to:
- Install dependencies:
npm install
- Run component Storybook:
npm run storybook
This project comes with Jest test runner and react-testing-library
. To tun the unit and snapshot tests,
you have to execute:
npm run test
npm run build
This command will bundle the library by using Rollup into a build
folder.
- Jacobo de Haro
- Twitter: @jacobodeharo
- Email: [email protected]