Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 997 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 997 Bytes

with-lerna example

An example of a split project into separate packages, useful for code sharing, using Lerna.
See live example

General information:

  • it uses lerna and yarn as npm client.
  • it has 2 packages: the web app (Next.js) and an ui-lib, both using TypeScript (in the packages folder).
  • the modules from the ui-lib are being transpiled into the Next.js app with next-transpiled-modules.

Requirements:

  • to have yarn installed. (npm install -g yarn)
  • to have lerna installed. (npm install -g lerna)

How to run:

  • clone the repository
  • lerna bootstrap
  • yarn start:app
  • good to go 🤪

DEPLOYMENT INFORMATION ON VERCEL !!!

When you are creating the project, at the Configure Project select:

  • Framework preset: Next.js
  • Root Directory: ./packages/web-app