Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.1.1
- Adds a brief description of each template inline when running `firebase bootstrap`

## v1.1.0
- Supports new advanced features parameters in the `firebase.json` to allow greater customization of hosting parameters
- improves default "ignore" rules to specify any dot file, regardless of whether in a sub-directory
Expand Down
22 changes: 21 additions & 1 deletion lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,27 @@ module.exports = {
console.log(chalk.yellow('----------------------------------------------------'));
console.log(chalk.yellow('Available Templates'));
console.log(chalk.yellow('----------------------------------------------------'));
console.log(templateList.join('\n'));

var longestTemplateLength = 0;
for (var i = 0; i < templateList.length; i++) {
if (templateList[i].length > longestTemplateLength) {
longestTemplateLength = templateList[i].length;
}
}
for (var i = 0; i < templateList.length; i++) {
var key = templateList[i],
template = supportedTemplates[key];
var output = chalk.bold(key);
if (template.description) {
var spacingString = '';
for (var j = longestTemplateLength; j > key.length; j--) {
spacingString += ' ';
}
output += spacingString + ' - ' + template.description;
}
console.log(output);
}

console.log(chalk.yellow('----------------------------------------------------'));
console.log('Choose a template to help you get started with your app');
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "firebase-tools",
"preferGlobal": true,
"version": "1.1.0",
"version": "1.1.1",
"description": "The Firebase Command Line Tools",
"keywords": [
"firebase",
Expand Down