monorepo-react-component-library
monorepo-react-component-library copied to clipboard
This is a proof of concept of a monorepo structure for react components specially designed for design systems
The Design System
This is a proof of concept of a monorepo structure for serving react components and design tokens
Getting started
This is a monorepo repository using Lerna, Commitzen and Conventional Commits to maintain and manage component versions and for documentation, we use Storybook and Compodoc, you can access by clicking here
List of packages containing in this repository:
Name of package | Description |
---|---|
@thedesignsystem/components |
React components with each package.json file |
Setup
Local setup to run this project locally
Tools:
- Node version 10.20.1
- If you use nvm just run the command
nvm use
in the root folder
- If you use nvm just run the command
Configuration
- Install all the dependencies:
npm i
- You can see the components of this repo in:
- Storybook by running
npm run start:storybook
- Storybook by running
Installing components
All components in this repository are installed separately, that is, each component has its own npm package, for example if you want to install the button component:
npm i @thedesignsystem/button