Root Level Task to Run Many #32202
Unanswered
kevinswarner
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a root level task in my repo that essentially runs all of the specific matching tasks in the project. For example, let's say I have 20 project that have a "typecheck" task. I know I can do this, and this is fine...
But, it would be nice to do this...
I have tried two approaches. One works, but the output is mangled in the terminal UI, while the other works very nicely, but feels odd (like there should be a better way to do this.)
Option 1
The first options simply adds a target in the root project.json file like this...
But, this ends up generating output in the terminal window that includes a large amount of extra line breaks and strange, mangled output in general. It is definitely different from the output when running the command directly in the terminal.
Option 2
This option works nicely and the output in the terminal ui is very nice.
I am fine using this approach. It just seems a bit odd.
Am I missing a better way to do this? Again, the alternatives are fine, and using run-many directly from the terminal is also fine, I just wanted to provide an even simpler syntax for our developers.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions