1.0.3 • Published 4 years ago
rcl-demo v1.0.3
React Component Library
React components to be shared across applications
Use
CL has a dependency of styled-components
.
Install the package
$ yarn add rcl-demo
Wrap app with the ThemeProvider and theme
import { ThemeProvider, theme } from 'rcl-demo';
Import components
import { Button } from 'rcl-demo';
Develop
To install 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 run lint
$ yarn lint
To publish
$ npm publish
Build
To create a production build
$ yarn build
To create a production build of the static library
$ yarn styleguide:build