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

feat(schematics): ng deploy schematic #2046

Merged
merged 19 commits into from May 22, 2019
Merged

feat(schematics): ng deploy schematic #2046

merged 19 commits into from May 22, 2019

Conversation

jamesdaniels
Copy link
Member

@jamesdaniels jamesdaniels commented Apr 18, 2019

Checklist

  • Issue number for this PR: #nnn (required)
  • Docs included?: (yes/no; required for all API/functional changes)
  • Test units included?: (yes/no; required)
  • In a clean directory, yarn install, yarn test run successfully? (yes/no; required)

Description

  • add schematic, which logs the user in with the Firebase CLI and has them choose a project
  • deploy schematic, deploys their application to Firebase Hosting using the CLI
  • bumping versions, to allow use with ng 8 (and thinking forward to 9 rcs)

Usage

ng add @angular/fire
ng run [PROJECT_NAME]:deploy

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@jamesdaniels
Copy link
Member Author

FYI @kirjs I rearranged things a bit and got it compiling. Haven't tested yet. Have a couple more cleanup tasks.

@kirjs
Copy link
Contributor

kirjs commented Apr 18, 2019

Cool, lmk if there's any way I can help

@jamesdaniels
Copy link
Member Author

jamesdaniels commented Apr 18, 2019

@kirjs I'll ping you after my testing this afternoon.

My main concern is depending on firebase-tools it will light up npm audit, as it has vulnerabilities (mostly due to needing to support Node 6 for at least the next couple weeks). Fine with me if it's an @next cut. If we do pull into prod release, we'll want standard coms for it being a development dep (and maybe peer it) or to wait until firebase-tools drops Node 6... though perhaps the management APIs can give us what we need. Thoughts @davideast?

@jamesdaniels
Copy link
Member Author

@kirjs in the meantime, feel free to check out getting your tests ported. I just killed them for the moment but I put placeholders in... place.

@jamesdaniels jamesdaniels changed the title WIP deploy schematic feat(schematics): ng deploy schematic May 20, 2019
@jamesdaniels
Copy link
Member Author

@jhuleatt if you could give this a quick look over so we can merge it would be appreciated. It's had a bunch of eyeballs on it between myself, @kirjs, and @mgechev so the risk is low (beyond my prior expressed general concerns) so feel free to rubber stamp if nothing smells funny to you.

docs/deploy/getting-started.md Outdated Show resolved Hide resolved

*Note that the command above assumes you have global Angular CLI installed. To install Angular CLI globally run `npm i -g @angular/cli`.*

The command above will trigger the `@angular/fire` `ng-add` schematics. Once they install `@angular/fire`. If you are not authenticated, the schematics will open a browser which will guide you through the authentication flow. Once you authenticate, you'll see a prompt to select a Firebase hosting project.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I ran ng-add, the "choose a project" prompt wasn't in alphabetical order. The Firebase CLI returns them in alphabetical, so that was unexpected for me. Probably not a huge deal since most people don't have tons of projects, but worth fixing if it isn't a ton of work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For convenience, we provide fuzzy search. Maybe alphabetical order will be an additional simplification. We can add this.

docs/deploy/getting-started.md Show resolved Hide resolved
Copy link
Collaborator

@jhuleatt jhuleatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left a couple of documentation comments, but overall, LGTM!

@mgechev
Copy link
Member

mgechev commented May 22, 2019

Just opened a PR (#2081) to address @jhuleatt's comments.

@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@jamesdaniels jamesdaniels merged commit be0a1fb into master May 22, 2019
@jamesdaniels jamesdaniels deleted the feature/ng-deploy branch May 22, 2019 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants