0.4.2 • Published 5 years ago

monorepo-run v0.4.2

Weekly downloads
712
License
MIT
Repository
github
Last release
5 years ago

monorepo-run

Run scripts in monorepo with colors, streaming and separated panes

Installation

yarn global add monorepo-run

Or locally in your project:

yarn add -D monorepo-run

Usage

Execute mono-run <script> to run a NPM script in your monorepo packages.

By default it will understand Yarn workspaces.

To display the command help, use:

mono-run --help

UI

Enable UI layouts with the --ui flag:

mono-run lint --ui row

Streaming

By default, mono-run will wait for scripts to complete before displaying the outputs. If you want to get the ouput as soon as it's written instead, specify the --stream flag:

mono-run dev --stream

You can throttle the output so it's less overwelming in case there are a lot of writes:

# Throttle every 500ms
mono-run dev --stream 500

Examples

In your package.json:

{
  "scripts": {
    "dev": "mono-run dev --stream 500",
    "lint": "mono-run lint",
    "test": "mono-run test"
  }
}
0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago