0.4.3 • Published 3 years ago
monorepo-run-workspace v0.4.3
monorepo-run-workspace
Run scripts in monorepo with colors, streaming and separated panes. A fork of https://github.com/Akryum/monorepo-run
Installation
yarn global add monorepo-runOr locally in your project:
yarn add -D monorepo-runUsage
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 --helpUI
Enable UI layouts with the --ui flag:
mono-run lint --ui rowStreaming
By default, mono-run will wait for scripts to complete before displaying the outputs. If you want to get the output as soon as it's written instead, specify the --stream flag:
mono-run dev --streamYou can throttle the output so it's less overwelming in case there are a lot of writes:
# Throttle every 500ms
mono-run dev --stream 500Examples
In your package.json:
{
"scripts": {
"dev": "mono-run dev --stream 500",
"lint": "mono-run lint",
"test": "mono-run test"
}
}0.4.3
3 years ago