Skip to content

Commit

Permalink
feat(app generator): loose the marviq-tied default author url, and as…
Browse files Browse the repository at this point in the history
…k the user for it instead
  • Loading branch information
cueedee committed Mar 17, 2015
1 parent f19e65f commit f964dcb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ module.exports = yeoman.generators.Base.extend(
, message: "What is your email?"
, default: this.user.git.email
}
, {
name: "authorUrl"
, message: "If any, by what url would you like to be known?"
, default: ""
}
// , {
// name: "bootstrap"
// , type: "confirm"
Expand Down Expand Up @@ -76,12 +81,14 @@ module.exports = yeoman.generators.Base.extend(
this.mainName = props.mainName;
this.authorName = props.authorName;
this.authorEmail = props.authorEmail;
this.authorUrl = props.authorUrl.trim();
this.bootstrap = props.bootstrap;
this.ie8 = props.ie8;
this.multiLanguage = props.multiLanguage;
this.demo = props.demo;

callback();

}.bind( this ) );
}

Expand Down
4 changes: 2 additions & 2 deletions generators/app/templates/_package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"author": {
"email": "<%= authorEmail %>",
"name": "<%= authorName %>",
"url": "https://github.com/Marviq"
"name": "<%= authorName %>"<% if ( authorUrl ) { %>,
"url": "<%= authorUrl %>"<% } %>
},
"browser": {},
"browserify": {
Expand Down

0 comments on commit f964dcb

Please sign in to comment.