🐉 Lerning lerna (see what I did there)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages
server
.babelrc
.gitignore
README.md
jest.config.js
lerna.json
package-lock.json
package.json

README.md

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