Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated prompting to new yeoman-generator api #272

Merged
merged 1 commit into from
Aug 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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