项目作者: felippemauricio

项目描述 :
A boilerplate to build a React component library.
高级语言: JavaScript
项目地址: git://github.com/felippemauricio/react-components-lib-boilerplate.git
创建时间: 2019-02-06T22:55:14Z
项目社区:https://github.com/felippemauricio/react-components-lib-boilerplate

开源协议:MIT License

下载



react-components-lib


A boilerplate to build a React component library.



GitHub license


PRs Welcome




Build Status


devDependencies Status


Code Style


Code Style


Tested with jest


Storybook

Motivation

To finish with reworking when working with micro front ends, it is necessary to share components between different projects. So I created this project to don`t repeat confs on new libs and facilitate the work of new developers.

How to create a project using this boilerplate?

  1. Clone this repository.
  2. Run the script-name-replace to change project name.
  3. Modify and create themes on theme package.
  4. Modify and create components on components package.

How is the repo structured?

This repo is managed as a monorepo that is composed of two packages: themes and components.

Commands

You need to run this command before the storybook, lint or test commands, becouse it is necessary to create links.

How to build project?

  1. yarn build

How to build storybook?

  1. yarn storybook:build

How to show storybook?

  1. yarn storybook:start

How to run lint?

  1. yarn lint

How to run tests?

  1. yarn test

Libs that project depends

This libs are Peer Dependencies of this project.

License

Licensed under the MIT License, Copyright © 2019-present Felippe Maurício.