Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Akryum/monorepo-run
Run scripts in monorepo with colors, streaming and separated panes
https://github.com/Akryum/monorepo-run
lerna monorepo script
Last synced: 1 day ago
JSON representation
Run scripts in monorepo with colors, streaming and separated panes
- Host: GitHub
- URL: https://github.com/Akryum/monorepo-run
- Owner: Akryum
- License: mit
- Archived: true
- Created: 2019-10-21T19:18:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T14:39:54.000Z (about 3 years ago)
- Last Synced: 2024-09-26T00:13:21.521Z (about 1 month ago)
- Topics: lerna, monorepo, script
- Language: JavaScript
- Homepage:
- Size: 550 KB
- Stars: 185
- Watchers: 7
- Forks: 7
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-monorepo - monorepo-run - run.svg?style=social&label=Star) (仓库管理工具)
README
# monorepo-run
Run scripts in monorepo with colors, streaming and separated panes
## Installation
```bash
yarn global add monorepo-run
```Or locally in your project:
```bash
yarn add -D monorepo-run
```## Usage
Execute `mono-run ` to run a NPM script in your monorepo packages.
By default it will understand Yarn workspaces.
To display the command help, use:
```bash
mono-run --help
```### UI
Enable UI layouts with the `--ui` flag:
```bash
mono-run lint --ui row
```<p align="center">
<img src="./mono-run-ui.png" alt="Mono run UI screenshot">
</p>### Streaming
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:
```bash
mono-run dev --stream
```You can throttle the output so it's less overwelming in case there are a lot of writes:
```bash
# Throttle every 500ms
mono-run dev --stream 500
```## Examples
In your `package.json`:
```json
{
"scripts": {
"dev": "mono-run dev --stream 500",
"lint": "mono-run lint",
"test": "mono-run test"
}
}
```## Sponsors
[![sponsors logos](https://guillaume-chau.info/sponsors.png)](https://guillaume-chau.info/sponsors)