[RFC] control outputMode with an environment variable.
#7324
BrianHicks
started this conversation in
Ideas
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.
-
(context: I asked about this originally at #7199)
Describe the feature you'd like to request
I'd like to have different output modes in development and CI:
new-only.new-onlymakes it easy for me to see.full:Describe the solution you'd like
I would like Turbo to read a
TURBO_OUTPUT_MODEor similar environment variable with one of the values ofoutputMode/--output-logsand use that to inform the output it creates.In cases where there are conflicts between the sources of configuration, Turbo would chose the first of:
--output-logson the command lineTURBO_OUTPUT_MODEin the environmentoutputModein the configurationDescribe alternatives you've considered
outputModein my rootturbo.json: I could do this programmatically when starting CI, but it seems sketchy to mess around with the source in CI and I don't want to break caching.--output-logson all calls: As part of incremental migration to Turbo, I have several places where Turbo calls an old build tool (Gulp) and is called in turn. Since these are nested, I'd have to pass along the--output-logsvalue in all cases, leading to a lot of rewiring and the opportunity to get it wrong.turbo: only works if my build only callsturboand resolves fromPATHinstead of referencing an absolute path. Probably fairly reliable, but still feels like a hack to me.I think setting an environment variable is superior to all these solutions, since it can be set once-for-all. Without any modifications or hacks.
Beta Was this translation helpful? Give feedback.
All reactions