Skip to content

Commit

Permalink
Updated prompting to new yeoman-generator api (#272)
Browse files Browse the repository at this point in the history
Updated prompting to new yeoman-generator api

Fixes #271
  • Loading branch information
sthzg authored Aug 12, 2016
1 parent 9756541 commit c9cfbf1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ module.exports = generator.Base.extend({
},

prompting: function() {
let done = this.async();
this.prompt(prompts, function(props) {
return this.prompt(prompts, function(props) {

// Make sure to get the correct app name if it is not the default
if(props.appName !== utils.yeoman.getAppName()) {
Expand All @@ -47,7 +46,7 @@ module.exports = generator.Base.extend({
// Set needed global vars for yo
this.appName = props.appName;
this.style = props.style;
this.postcss = props.postcss
this.postcss = props.postcss;
this.generatedWithVersion = packageInfo.version.split('.').unshift();

// Set needed keys into config
Expand All @@ -59,7 +58,6 @@ module.exports = generator.Base.extend({

this.config.save();

done();
}.bind(this));
},

Expand Down

0 comments on commit c9cfbf1

Please sign in to comment.