/react-component-library

Projeto de estudo para criação de biblioteca de componentes React com guia de estilo

Primary LanguageTypeScript

CircleCI semantic-release semantic-release

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 publish

$ npm publish

Build

To create a production build

$ yarn build

To create a production build of the static library

$ yarn styleguide:build