Skip to content

Commit 2a862d6

Browse files
author
Chris Raynor
committed
Merge pull request #28 from firebase/v1.1.1
v1.1.1
2 parents 21f56f5 + 5d71c98 commit 2a862d6

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.1.1
2+
- Adds a brief description of each template inline when running `firebase bootstrap`
3+
14
## v1.1.0
25
- Supports new advanced features parameters in the `firebase.json` to allow greater customization of hosting parameters
36
- improves default "ignore" rules to specify any dot file, regardless of whether in a sub-directory

lib/app.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,27 @@ module.exports = {
328328
console.log(chalk.yellow('----------------------------------------------------'));
329329
console.log(chalk.yellow('Available Templates'));
330330
console.log(chalk.yellow('----------------------------------------------------'));
331-
console.log(templateList.join('\n'));
331+
332+
var longestTemplateLength = 0;
333+
for (var i = 0; i < templateList.length; i++) {
334+
if (templateList[i].length > longestTemplateLength) {
335+
longestTemplateLength = templateList[i].length;
336+
}
337+
}
338+
for (var i = 0; i < templateList.length; i++) {
339+
var key = templateList[i],
340+
template = supportedTemplates[key];
341+
var output = chalk.bold(key);
342+
if (template.description) {
343+
var spacingString = '';
344+
for (var j = longestTemplateLength; j > key.length; j--) {
345+
spacingString += ' ';
346+
}
347+
output += spacingString + ' - ' + template.description;
348+
}
349+
console.log(output);
350+
}
351+
332352
console.log(chalk.yellow('----------------------------------------------------'));
333353
console.log('Choose a template to help you get started with your app');
334354
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "firebase-tools",
33
"preferGlobal": true,
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"description": "The Firebase Command Line Tools",
66
"keywords": [
77
"firebase",

0 commit comments

Comments
 (0)