-
Notifications
You must be signed in to change notification settings - Fork 876
chore: add firebase project name to prompt #2743
chore: add firebase project name to prompt #2743
Conversation
Remove project name from firebase.json, since that is deprecated. The `check-deploy` gulp task now checks that an active project is defined at the start of `check-deploy`. To set the active project use: `firebase use <project-or-alias-name>`. Fixes angular#2576
f673338
to
567ebac
Compare
Best reviewed by ignoring whitespace. |
prompt.start(); | ||
var schema = { | ||
name: 'shouldDeploy', | ||
description: 'Deploy to Firebase? (y/n)', | ||
description: `Deploy ${WWW} to firebase? (y/n)`, |
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.
back ticks are really valid here?
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.
Yes, its TS syntax for a string with interpolation (i.e., the ${WWW} inside the string).
} catch (e) { | ||
// Rerun command so user gets project + alias info | ||
execSync('firebase use', {stdio:[0,1,2]}); | ||
throw `\nAborting: no firebase project selected. Run:\n\n firebase use <project-or-alias-name>\n\n`; |
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.
Perhaps a little help on how to get the project-or-alias-name? Or an example of a name?
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.
That's what line 773 does. It generates output like:
No project is currently active.
Project aliases for /Users/chalin/git/angular.io:
live (angular-io)
ngdocsdev (ngdocsdev)
kw-dev (kw-angular-io)
dev (angular-io-dev)
Is that good enough?
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.
Yep, that's great.
LGTM. Thanks! |
Remove project name from
firebase.json
, since that is deprecated.The
check-deploy
gulp task now checks that an active project is defined at the start ofcheck-deploy
.To set the active project use:
firebase use <project-or-alias-name>
.Fixes #2576
cc @kwalrath