DevOpsJavaScript

What is Lerna

Lerna -
A tool for managing JavaScript projects with multiple packages.

It’s A tool for managing JavaScript projects with multiple packages.

About Lerna:

Splitting up large codebases into separate independently versioned packages is extremely useful for code sharing.
Also making changes across many repositories is messy and difficult to track, and testing across repositories gets complicated fast.
For example, some projects will organize their codebases into multi-package repositories, Projects like BabelReactAngularEmberMeteorJest, and many others develop all of their packages within a single repository.

Lerna is a tool that optimizes the workflow around managing multi-package repositories with git and npm.

Lerna repo look like:

my-lerna-repo/
     package.json
     packages/
         package-1/
             package.json
         package-2/
             package.json

What Lerna can do ?

The two primary commands in Lerna are lerna bootstrap and lerna publish.
bootstrap will link dependencies in the repo together. 
publish will help publish any updated packages.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

NQI5MN ypE QA

Please type the text above:

Check Also

Close
Close
Close