Skip to content

Commit

Permalink
feat(app generator): make author email address optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cueedee committed Mar 17, 2015
1 parent f964dcb commit 1f5c580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = yeoman.generators.Base.extend(
this.packageDescription = props.packageDescription;
this.mainName = props.mainName;
this.authorName = props.authorName;
this.authorEmail = props.authorEmail;
this.authorEmail = props.authorEmail.trim();
this.authorUrl = props.authorUrl.trim();
this.bootstrap = props.bootstrap;
this.ie8 = props.ie8;
Expand Down
4 changes: 2 additions & 2 deletions generators/app/templates/_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": {
"email": "<%= authorEmail %>",
"author": {<% if ( authorEmail ) { %>
"email": "<%= authorEmail %>",<% } %>
"name": "<%= authorName %>"<% if ( authorUrl ) { %>,
"url": "<%= authorUrl %>"<% } %>
},
Expand Down

0 comments on commit 1f5c580

Please sign in to comment.