-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(ng-deploy): add option to specify firebaseProject (#2281) (#2063) #2366
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
This isn't the case. See this angular.json config and these npm scripts. |
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 as far as specifying a Firebase project to use
, which is an extremely critical feature.
…targets There has also been a minor code style change in how feedback is logged during deploy. My initial commit used console.log, whereas the proper way uses context.logger... this has been fixed.
I should probably update some maintainers about this. So although it's possible using npm scripts, it wasn't possible using just a angular.json configuration. I've already submitted a request to fix the bug in the angular CLI and there's a pending merge: angular/angular-cli#17332 There are some |
Ah, thank you for the clarification and bug report! Glad to see that Alan already has a PR to fix this in |
Hey, sorry I'm a bit new to this so maybe you can explain how it all works... So, it says that travisCI is still pending, but when I click on it it says it passed all tests... is this stopping the commits from being merged? Have they been merged? It seems like it's still waiting for approval. Does it usually take a while? |
@george43g Travis says that the tests passed, but it seems like GitHub hasn't figured that out. If you do another push with some of the changes from @NothingEverHappens' suggestions, it should clear it up. Your changes in this PR have not yet been merged. Getting changes merged can take weeks or months and requires a lot of patience. The branch being out of date isn't an issue at this time. If it lists some conflicts, then you would need to merge in the latest changes and resolve the conflicts. At this point, it's just waiting on @jamesdaniels or @davideast to do final approval and get it merged. |
As suggested in comments in #2366, I have made some small improvements to existing changes pending in this PR.
I'm working to cut 6.0.1 and support upcoming NG 10 release right now. Our CI/CD pipeline got messed up which is causing some backlog :( Will cut 6.1 with some new features shortly thereafter and I'm planning on getting this in. |
Any chance we can get this in now? I'm working for a company as a devops role atm and we could really use this feature :D |
Solving conflicts and merging into #2647 |
Checklist
yarn install
,yarn test
run successfully? yesDescription
As per #2063 , #2281, I have added the option for the target firebase project to be specified in angular.json. Previously, the builder would simply guess the target project based on the first target which contained the same name/host.
Code sample
In angular.json, you can now specify:
When running
ng deploy
, the CLI will confirm which firebase project is being deployed to. This value is optional - if not supplied, builder will fall back to old behaviour of guessing. If the project value is invalid, it will fail gracefully with a descriptive error message.This feature is incomplete because
configurations
are not yet working, however, this seems to be an issue with ng-cli. IE there is no way to have multiple configurations (production, dev, staging, etc..) yet.