New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --parallel flag to lerna run
#796
Conversation
describe: "Stream output with lines prefixed by package." | ||
} | ||
describe: "Stream output with lines prefixed by package.", | ||
type: "boolean", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discovered during the writing of new integration tests, without this explicit type
one could cause a mangling of the arguments passed in by innocently re-ordering them. Obviously not very ideal.
Argh, I'm getting bitten by this line on Windows. 😡 |
This allows simpler invocation of `watch` scripts, with the caveat that concurrency and topological sorting are _completely_ ignored. This is generally the intention when calling `lerna run watch` and other similar script targets, hence the additional flag. # the following commands are equivalent lerna run watch --concurrency=1000 --stream lerna run watch --parallel Package filtering (`--scope` and `--ignore`) is still available when this new flag is being used, and it is advised to narrow the scope of parallel execution when you have more than a dozen packages or so (YMMV).
Awesome, exactly what I'm looking for! Would it be possible to release this change @evocateur ? :) |
My goal is to release 2.0.0 this week.
… On May 14, 2017, at 02:20, Aeneas ***@***.***> wrote:
Awesome, exactly what I'm looking for! Would it be possible to release this change @evocateur ? :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Provide a new flag,
--parallel
, to facilitate easier and less error-prone spawning of long-running watchers from npm scripts (e.g.,lerna run watch
).Motivation and Context
This allows simpler invocation of
watch
scripts, with the caveat that concurrency and topological sorting are completely ignored. This is generally the intention when callinglerna run watch
and other similar script targets, hence the additional flag.# the following commands are equivalent $ lerna run watch --concurrency=1000 --stream $ lerna run watch --parallel
Package filtering (
--scope
and--ignore
) is still available when this new flag is being used, and it is advised to narrow the scope of parallel execution when you have more than a dozen packages or so (YMMV).How Has This Been Tested?
local monorepo dev and copious unit and integration tests.
Types of changes
Checklist: