1.1.0 • Published 7 years ago
@madrus/lerna-demo v1.1.0
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 installto 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 port8080and the admin app on port8081oflocalhost