-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Offer to set default browsers #3792
Conversation
Timer
commented
Jan 14, 2018
•
edited
Loading
edited
Nice, but we should output the defaults we've written. |
.then(() => | ||
// We attempt to use the default port but if it is busy, we offer the user to | ||
// run on a different port. `choosePort()` Promise resolves to the next free port. | ||
choosePort(HOST, DEFAULT_PORT).then(port => { |
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.
Return this to avoid the extra nesting level?
.then(() => | ||
// First, read the current file sizes in build directory. | ||
// This lets us display how much they changed later. | ||
measureFileSizesBeforeBuild(paths.appBuild) |
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.
Same as below
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.
Might be a bit clearer with blocks and explicit return
statements
More explicit it is: 2dc7f9f |
* Offer to set browser defaults * Catch error on no * Add ending newlines * Ensure we re-check to prevent defaults from leaking * Reduce nesting * Add defaults message * More explicit
* Offer to set browser defaults * Catch error on no * Add ending newlines * Ensure we re-check to prevent defaults from leaking * Reduce nesting * Add defaults message * More explicit
* Offer to set browser defaults * Catch error on no * Add ending newlines * Ensure we re-check to prevent defaults from leaking * Reduce nesting * Add defaults message * More explicit
* Offer to set browser defaults * Catch error on no * Add ending newlines * Ensure we re-check to prevent defaults from leaking * Reduce nesting * Add defaults message * More explicit