Skip to content

mariusflorescu/with-lerna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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