@comicrelief/component-library
v8.44.3
Published
Comic Relief React Component Library --------------
Keywords
Readme
Comic Relief React Component Library
React components to be shared across Comic Relief applications
Use
CR-CL has a dependency of Styled-components.
Install the package
$ yarn add @comicrelief/component-libraryWrap your app with the ThemeProvider and crTheme
import { ThemeProvider, crTheme } from '@comicrelief/component-library';Import components
import { HeroBanner } from '@comicrelief/component-library';Develop
To install CR-CL locally, run:
$ yarn installTo start the dev build and server:
$ yarn styleguideTo test:
$ yarn test:unitTest will run through all Jest tests and watch for any changes on snapshots.
To update snapshots with desired changes brought in through your work:
$ yarn test:unit:updateTo publish
$ yarn publish:npmTesting
Install Playwright:
yarn playwright installRun the tests:
yarn test:e2e:local