1.1.0 • Published 5 years ago

@madrus/lerna-demo v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
5 years ago

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 port 8080 and the admin app on port 8081 of localhost