-
Notifications
You must be signed in to change notification settings - Fork 556
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
Use Listr directly for the task runner #27260
Conversation
3360a7e
to
f001572
Compare
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.
Note this file is actually unused anywhere… so worth removing as a follow-up
rather than a custom wrapper, we can use the Listr API directly to peel off layers of abstraction, reduce custom code, and benefit from the library’s types.
125a6e6
to
7aa10bc
Compare
task: () => compile('atoms/*.scss'), | ||
}, | ||
], | ||
{ concurrent: !!ctx.verbose ? false : true }, |
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.
Whats the reason to switch concurrency here?
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.
Previously, when concurrent
was true
, listrify
would read this value and convert it to true
or false
based on a series of check. This makes it more explicit at the point of creation.
new Listr(taskModules, { | ||
collapse: true, | ||
renderer: IS_VERBOSE ? VerboseRenderer : 'default', | ||
concurrent: VERBOSE ? false : true, | ||
}) |
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.
😍 This is great! Removes a lot of complexity!
Seen on FRONTS-PROD, ADMIN-PROD (merged by @mxdvl 14 minutes and 10 seconds ago)
|
What is the value of this and can you measure success?
Peel off layers of abstraction and benefit from the library’s types.
Follow-up on #27247
What does this change?
task
exports as beingListrTask
newListr
for subtasksconcurrency
explicit for subtask and dependent on contextstring
task explicitly callexeca
listrify
andexec
function as they are redundant