Skip to content

A Demo of two different Architectures for a Lerna / React / Storybook App

Notifications You must be signed in to change notification settings

richsoni/lerna-storybook-architecture-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lerna / Storybook Architecture Demo

This Repo contains two separate lerna projects which contains the following:

  • lerna.json
  • packages/external-component - a component library using create-react-library which builds with React as a Peer Dependency. It also uses CSSModules to demonstrate that clients are not required to depend on them
  • packages/web-app - a basic create-react-app, which depends on and imports the built external-component via lerna
  • A Storybook instance which include external-component and supports live reload

When the packages differ is the location of Storybook.

In storybook-as-package, Storybook is located in packages and behaves just like any other Lerna package.

In storybook-in-root, Storybook is installed and configured within the Root repository.

Local Development

Each project works slightly differently.

Follow the readme for each:

About

A Demo of two different Architectures for a Lerna / React / Storybook App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published