All Projects → garmeeh → lerna-starter

garmeeh / lerna-starter

Licence: MIT license
Simple React UI Development environment boilerplate to develop, test and publish your React components.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to lerna-starter

fyndiq-ui
Library of reusable web frontend components for Fyndiq
Stars: ✭ 39 (-29.09%)
Mutual labels:  react-components, lerna, storybook, component-library
shared-react-components-example
An example of a mono-repository of shared React components libraries!
Stars: ✭ 85 (+54.55%)
Mutual labels:  react-components, lerna, storybook
smores-react
🍭 Marshmallow React components
Stars: ✭ 34 (-38.18%)
Mutual labels:  react-components, storybook, component-library
Ui
Talend's unified web UI repository.
Stars: ✭ 105 (+90.91%)
Mutual labels:  react-components, lerna
Matchbox
🔥 A react UI component library
Stars: ✭ 58 (+5.45%)
Mutual labels:  react-components, storybook
Neumorphic Ui
📚 A library of components based on the concept of neumorphism
Stars: ✭ 82 (+49.09%)
Mutual labels:  react-components, component-library
Baseweb
A React Component library implementing the Base design language
Stars: ✭ 7,213 (+13014.55%)
Mutual labels:  react-components, component-library
Semantic Ui React
The official Semantic-UI-React integration
Stars: ✭ 12,561 (+22738.18%)
Mutual labels:  react-components, component-library
Styleguide
The VTEX Design System and React component library.
Stars: ✭ 138 (+150.91%)
Mutual labels:  react-components, component-library
pattern-library
AXA CH UI component library. Please share, comment, create issues and work with us!
Stars: ✭ 103 (+87.27%)
Mutual labels:  lerna, storybook
paragon
💎 An accessible, theme-ready design system built for learning applications and Open edX.
Stars: ✭ 85 (+54.55%)
Mutual labels:  react-components, component-library
react-library-template
Jumpstart your team's shared react library
Stars: ✭ 26 (-52.73%)
Mutual labels:  storybook, component-library
Paragon
💎 Accessible components done right.
Stars: ✭ 52 (-5.45%)
Mutual labels:  react-components, component-library
Axiom React
Axiom - Brandwatch design system and React pattern library
Stars: ✭ 41 (-25.45%)
Mutual labels:  react-components, component-library
Uniforms
A React library for building forms from any schema.
Stars: ✭ 1,368 (+2387.27%)
Mutual labels:  react-components, component-library
React Atlas
Composable React components with CSS Modules.
Stars: ✭ 36 (-34.55%)
Mutual labels:  react-components, component-library
React Rough
🐇 React Components for Rough.js
Stars: ✭ 164 (+198.18%)
Mutual labels:  react-components, storybook
orfium-ictinus
This repo will include the building blocks to create the Orfium Parthenons to come ...
Stars: ✭ 20 (-63.64%)
Mutual labels:  react-components, storybook
Pivotal Ui
Pivotal's design system & component library
Stars: ✭ 637 (+1058.18%)
Mutual labels:  react-components, component-library
Awesome Ui Component Library
Curated list of framework component libraries for UI styles/toolkit
Stars: ✭ 702 (+1176.36%)
Mutual labels:  react-components, component-library

React Component Library Publishing Starter

Getting Started

  1. Clone the project: git clone [email protected]:garmeeh/lerna-starter.git
  2. Setup project: npm install
  3. Run npm run start

Running npm run start will:

1.) Spin up Storybook. You can then navigate to http://localhost:9001/ and you will be able to see the example packages showcased in Storybook.

2.) Will run the build script in watch mode. This means any changes made in the packages folder will be built and updated in Storybook.

Publishing

To build and publish your packages you just need to run:

npm run publish-packages

(You will need to be logged into npm)

This will run the build script and then publish your packages. It is currently set to publish each package individually so that their versions are independent.

You can find the full options for publishing here so that you can tailor to your exact needs. But for most cases the current set up will be enough.

Tests

This project comes with Jest and React Testing Library set up for you.

To run all tests and generate a coverage report simply run:

npm run test

While developing you can also run tests in watch mode by running:

npm run test:watch

Export Static Storybook

Storybook gives a great developer experience with its dev time features, like instance change updates via Webpack’s HMR.

But Storybook is also a tool you can use to showcase your components to others.

For that, Storybook comes with a tool to export your storybook into a static web app. Then you can deploy it to GitHub pages or any static hosting service.

Simply run:

npm run export-static-storybook

This will build the storybook configured in the Storybook directory into a static web app and place it inside the .out directory. Now you can deploy the content in the .out directory wherever you want.

To test it locally, simply run the following commands with Python HTTP Server:

cd .out
python -m SimpleHTTPServer

or Node HTTP Server:

npm install http-server -g
cd .out
http-server
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].