Skip to content
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

Add support for 'auto' option with analyzer port #281 #290

Merged
merged 1 commit into from Jul 29, 2019
Merged

Add support for 'auto' option with analyzer port #281 #290

merged 1 commit into from Jul 29, 2019

Conversation

avin-kavish
Copy link
Contributor

It's a single line of quite self-explanatory code. But I'm happy to write tests, just not sure where.

The logic I went with was, if analyzer port is specified, (and) if it is 'auto' use 0, else use the specified value. If it is not specified, use 8888, the default.

Closes #281

@jsf-clabot
Copy link

jsf-clabot commented Jul 1, 2019

CLA assistant check
All committers have signed the CLA.

@avin-kavish
Copy link
Contributor Author

avin-kavish commented Jul 1, 2019

  1. Analyzer
    "before each" hook for "should support stats files with all the information in children array":
    Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/travis/build/webpack-contrib/webpack-bundle-analyzer/test/analyzer.js)

Some issue with nightmare I think. Tests run fine on my pc

@th0r
Copy link
Collaborator

th0r commented Jul 3, 2019

Can we support auto value for CLI --port option as well?

@th0r
Copy link
Collaborator

th0r commented Jul 5, 2019

Could you please also update this section in readme?

@avin-kavish
Copy link
Contributor Author

Sorry about the delay, I had some projects to work on. Not sure if you got the notification, I've force pushed to keep the commit history clean.

@th0r
Copy link
Collaborator

th0r commented Jul 15, 2019

Everything is fine except some issue with the build on CI. Could you take a look at why it fails?

@th0r th0r merged commit b652308 into webpack-contrib:master Jul 29, 2019
@th0r
Copy link
Collaborator

th0r commented Jul 29, 2019

@avin-kavish Thanks for the PR, merged!

@th0r
Copy link
Collaborator

th0r commented Jul 29, 2019

Published in v3.4.0

@avin-kavish avin-kavish deleted the feat/auto-analyzer-port branch July 30, 2019 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert analyzerPort: "auto" option to analyzerPort: 0
3 participants