GithubHelp home page GithubHelp logo

rickwong / lerna Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lerna/lerna

0.0 3.0 0.0 18 KB

A tool for managing JavaScript projects with multiple packages.

License: MIT License

JavaScript 100.00%

lerna's Introduction

Lerna

A tool for managing JavaScript projects with multiple packages.

About

While developing Babel I followed a monorepo approach where the entire project was split into individual packages but everything lived in the same repo. This was great. It allowed super easy modularisation which meant the core was easier to approach and meant others could use the useful parts of Babel in their own projects.

This tool was abstracted out of that and deals with bootstrapping packages by linking them together as well as publishing them to npm. You can see the Babel repo for an example of a large Lerna project.

Usage

$ npm install -g lerna
$ lerna bootstrap

This will create a dummy VERSION file as well as a packages folder.

Bootstrap

$ lerna bootstrap
  1. Link together all packages that depend on each other.
  2. npm install all other dependencies of each package.

Publishing

$ lerna publish
  1. Publishes each module in packages that has been updated since the last version to npm with the tag prerelease.
  2. Once all packages have been published. Remove the prerelease tags and add the tags latest and stable.

How it works

Lerna projects operate on a single version line. The version is kept in the file VERSION at the root of your project. When you run lerna publish, if a module has been updated since the last time a release was made, it will be updated to the new version you're releasing. This means that you only publish a new version of a package when you need to.

lerna's People

Contributors

amasad avatar hzoo avatar jmm avatar obetomuniz avatar sebmck avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.