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 thempackages/web-app
- a basic create-react-app, which depends on and imports the builtexternal-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.
Each project works slightly differently.
Follow the readme for each: