1.0.3 • Published 5 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-demoWrap 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 installTo start
$ yarn styleguideTo test
$ yarn testTest will run through all jest tests and watch for any changes on snapshots.
To run lint
$ yarn lintTo publish
$ npm publishBuild
To create a production build
$ yarn buildTo create a production build of the static library
$ yarn styleguide:build