Skip to content

QingLianDuo/smart-react-color

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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published