@madrus/lerna-demo
v1.1.0
Published
test NPM packaging
Downloads
2
Readme
Lerna Demo
Cloned from and all credits to https://github.com/sh1989/lerna-demo
This is an example of using Lerna to create a monorepo, hosting two react apps: a Client, and an Admin. There is additionally some common code which sits as a helper package. This contains some React components used by both packages, and some used by only one or the other, to demonstrate Tree Shaking
.
Instructions
- Ensure lerna is installed globally:
npm install -g lerna
- Clone the repo
- Run
npm install
to install dependencies - Build the apps, either in debug mode (
lerna run build
) or "prod" mode (lerna run prod
) - Start the server:
npm start
, which hosts the client app on port8080
and the admin app on port8081
oflocalhost