-
Notifications
You must be signed in to change notification settings - Fork 915
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
support dev streaming logs #1203
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/33w5q8wk8 |
e5677cb
to
b2019c0
Compare
stdOutput = stdOutput.replace(/\x1Bc/, '').replace(/\u001bc/, ''); | ||
} | ||
if (cmdProgram === 'tsc') { |
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.
related: WORKER_UPDATE
was no longer used, so this entire block had essentially become a no-op. Safe to remove
94db5e0
to
b2019c0
Compare
b2019c0
to
2437172
Compare
@@ -92,6 +93,7 @@ const configSchema = { | |||
fallback: {type: 'string'}, | |||
bundle: {type: 'boolean'}, | |||
open: {type: 'string'}, | |||
output: {type: 'string', enum: ['stream', 'dashboard']}, |
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.
I’m thinking about output
as a CLI flag (e.g. snowpack dev --output=stream
) and I’m slightly-against it because the way we’ve implemented these (code), it seems like it could conflict with a future output
in another namespace (like if we added a buildOptions.output
or installOptions.output
).
Is there a more clear name that relates to logging than “output?” What about logStyle
?
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.
eh tbh I think this is okay to wait until we hit that issue. We could just as easily choose a more specific name for that second "output" when we get to it. As mentioned above, the idea is to match the same "output" option that we support in the run
plugin today.
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.
Approving as this looks good and can be merged as-is. But see question on a “permanent” CLI flag
Changes
Testing
Docs