From ce69d6fa96abcaf63ab2d5fc2c34684ad9bad363 Mon Sep 17 00:00:00 2001 From: sthzg Date: Fri, 12 Aug 2016 11:00:24 +0200 Subject: [PATCH] Updated prompting to new yeoman-generator api Fixes #271 --- generators/app/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/generators/app/index.js b/generators/app/index.js index 2f22912..24093ab 100644 --- a/generators/app/index.js +++ b/generators/app/index.js @@ -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()) { @@ -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 @@ -59,7 +58,6 @@ module.exports = generator.Base.extend({ this.config.save(); - done(); }.bind(this)); },