-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(@angular/cli): read proxyConfig from angular-cli.json #6493
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
Conversation
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.
LGTM overall, just a few minor changes to ensure everything is consistent. Good work!
"proxyConfig": { | ||
"description": "Proxy configuration file.", | ||
"type": "string", | ||
"default": "" |
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.
Can you remove the default here? It's better to not have one since sending in an empty string is different than not sending anything.
tests/e2e/tests/misc/proxy-config.ts
Outdated
@@ -0,0 +1,59 @@ | |||
import * as express from 'express'; |
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.
Can you rename the proxy.ts
test to proxy-config.ts
, and do all tests in a single file using the --proxy-config
flag? I think we must have renamed the flag at one point and forgot to change the test name.
85e6daf
to
fe43113
Compare
updated - let me know if I missed anything. Thanks. |
The tests seem to be failing, there might be something broken in the new set of changes. |
tests are failing for me because the command @angular/cli is keeping a port open. Could it be that
Is this a known issue? |
@ayvazj I'm not sure what's keeping the port open on the revised test, but am reasonably sure It might be that you can't do |
easy proxy config by reading default from angular-cli.json (angular#6240)
@filipesilva got some time to revisit this. my bad, I wasn't opening/closing the server properly after consolidating tests, causing downstream tests to fail. |
@ayvazj thanks for updating it, there's a test failing but I think it's a fluke so restarted the CI run. Cheers! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
easy proxy config by reading default from angular-cli.json (#6240)