Skip to content

Commit

Permalink
Merge pull request #28 from firebase/v1.1.1
Browse files Browse the repository at this point in the history
v1.1.1
  • Loading branch information
Chris Raynor committed Jul 20, 2014
2 parents 21f56f5 + 5d71c98 commit 2a862d6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
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

0 comments on commit 2a862d6

Please sign in to comment.