Skip to content

Commit f673338

Browse files
committed
chore: add firebase project name to prompt and support alt projects
Add firebase project name to `Deploy to firebase?` prompt. Fixes angular#2576
1 parent 35d8695 commit f673338

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.firebaserc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"projects": {
33
"live": "angular-io",
4-
"ngdocsdev": "ngdocsdev"
4+
"ngdocsdev": "ngdocsdev",
5+
"kw-dev": "kw-angular-io",
6+
"dev": "angular-io-dev"
57
}
68
}

gulpfile.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ gulp.task('check-deploy', ['build-docs'], function() {
753753
}).then(function(shouldDeploy) {
754754
if (shouldDeploy) {
755755
gutil.log('deploying...');
756-
return execPromise('firebase deploy');
756+
return execPromise(`firebase deploy -p ${WWW}`);
757757
} else {
758758
return ['Not deploying'];
759759
}
@@ -1204,10 +1204,11 @@ function watchAndSync(options, cb) {
12041204

12051205
// returns a promise;
12061206
function askDeploy() {
1207+
const firebaseData = require('./firebase.json');
12071208
prompt.start();
12081209
var schema = {
12091210
name: 'shouldDeploy',
1210-
description: 'Deploy to Firebase? (y/n)',
1211+
description: `Deploy to firebase ${firebaseData.firebase} from ${WWW}? (y/n)`,
12111212
type: 'string',
12121213
pattern: /Y|N|y|n/,
12131214
message: "Respond with either a 'y' or 'n'",

0 commit comments

Comments
 (0)