Skip to content

nelsieborja/monorepos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lerna vs. Nx vs. Rush

Criteria

  • DX (Developer experience)
  • Build execution time

The same set of packages (see below dependencies) were created for each tool, this setup was then used to obtain the result of the above criteria.

dependency graph

This dependency graph was created with Nx affected:dep-graph.

The verdict

DX

  • Lerna - overall setup was easy. It provides features mainly for publishing npm packages, so when it comes to creating projects, you have to do yourself all the code setup. Sharing of code can easily be done in just 2 steps.
  • Nx - the most convenient and easiest to setup with. With the Nx CLI, you can quickly scaffold new projects in a consistent and standardize fashion. Code sharing is done instantly, no extra step needed.
  • Rush - not an easy one to get started with. You have to follow some steps as part of configuring things, otherwise you mess things up. Same as Lerna, features are mainly for publishing and managing npm package. Sharing of code requires extra steps and you might also face some issue.

Build execution time

dependency graph

Setup guide

You can check the step-by-step guide added for each tool inside their own folder or just use the below links: