smart-react-color

0.1.0 • Public • Published

React Components Library Boilerplate

Build Status airbnb-style

Simple boilerplate for easy creation of own react components library.

Basic usage

  1. Clone this repo using
git clone git@github.com:emahnovets/react-components-library-boilerplate.git <my-awesome-lib>
  1. Remove .git directory
rm -rf .git
  1. Personalize package.json. Changes:
  • Name
  • Author
  • Repository
  • Licence
  1. Initialize git and commit your changes

Features

  • Typescript
  • TSLint & Prettier (with airbnb config)
  • Jest for testing (Enzyme + jest-image-snapshot) (one note: it would be better to use one machine to update and compare image snapshot since rendering can be a bit different from platform to platform)
  • Webpack 4
  • Storybook for components demo
  • CSS Modules (SCSS supported)
  • Example component

Tasks

  1. yarn start - run storybook for development and demo
  2. yarn build:storybook - build components demo with docs
  3. yarn build - build package
  4. yarn lint - lints components code
  5. yarn test - perform all tests. (storybook demo should be started using 1st command)
  6. yarn format - format code using prettier

License

react-components-library-boilerplate is available under MIT. See LICENSE for more details.

Readme

Keywords

none

Package Sidebar

Install

npm i smart-react-color

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

2.89 MB

Total Files

58

Last publish

Collaborators

  • smartangus