React components to be shared across Comic Relief applications
CR-CL has a dependency of Styled-components.
$ yarn add @comicrelief/component-library
import { ThemeProvider, crTheme } from '@comic-relief/component-library';
import { HeroBanner } from '@comic-relief/component-library';
To install CR-CL locally run
$ yarn install
To start
$ yarn styleguide
To test
$ yarn test
Test will run through all jest tests and watch for any changes on snapshots.
To update snapshots
$ yarn test -u
To publish
$ yarn publish:npm