Skip to content

A CLI utility program for Node.js monorepo projects.

License

Notifications You must be signed in to change notification settings

liveblog/monorepo

This branch is 2 commits ahead of, 14 commits behind mariuslundgard/monorepo:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3d7ef46 · Mar 13, 2018

History

52 Commits
Nov 20, 2017
Mar 13, 2018
Jan 24, 2018
May 14, 2017
Jan 24, 2018
Nov 19, 2017
May 14, 2017
Feb 12, 2018
Jan 24, 2018
Feb 12, 2018
Feb 12, 2018

Repository files navigation

monorepo

A CLI utility program for Node.js monorepo projects.

npm install monorepo --save-dev

build status npm version

Features

  • Adapters. Use either npm (default) or yarn.
  • Parallel. Runs package scripts and commands in parallel.

Motivation

lerna is pretty good, but seems bloated and messes up the output to stdout.

Usage

Add a monorepo.json to the root of the project. Example:

{
  "adapter": "npm",
  "packages": ["packages/*"]
}

To install all the sub-package dependencies, run:

monorepo install

To publish all the sub-package dependencies, run:

monorepo publish

To run the test script in each of the packages, run:

monorepo run test

API

monorepo(args, flags, opts, cb)

monorepo may be used as a Node.js module:

const monorepo = require('monorepo')

monorepo(
  ['test'],
  {adapter: 'yarn', quiet: true},
  {cwd: path.resolve(__dirname, 'path/to/root')},
  err => {
    if (err) {
      console.error(err.message)
      process.exit(err.code || 1)
    }
  }
)

About

A CLI utility program for Node.js monorepo projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%