Without nub
Usually we use concurrently to run multiple scripts:
{
"scripts": {
"serve": "concurrently --names '🤖,🌼' 'pnpm --filter backend serve' 'pnpm --filter frontend serve'"
}
}
With nub 0.7.0
We can remove the serve script from the main package.json and do:
nub run -r serve
# or
nub run -r --parallel serve
But we lose the color output (--color=always doesn't work) and we cannot customize the prefix (we get something like frontend serve: ... for each line).
Feature requests
- Allow color output in concurrent / parallel mode
- Allow to customize the prefix to reduce the output noises
- Allow to distribute SIGINT to all running script once (when pressing Ctrl+C)
Without nub
Usually we use concurrently to run multiple scripts:
{ "scripts": { "serve": "concurrently --names '🤖,🌼' 'pnpm --filter backend serve' 'pnpm --filter frontend serve'" } }With nub 0.7.0
We can remove the
servescript from the mainpackage.jsonand do:nub run -r serve # or nub run -r --parallel serveBut we lose the color output (
--color=alwaysdoesn't work) and we cannot customize the prefix (we get something likefrontend serve: ...for each line).Feature requests