From 015c93ce7b4a8b13c7c66aace5fc6da130cc0000 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 30 Dec 2016 12:56:34 -0600 Subject: [PATCH] updating to yeoman-generator v0.23 in process to get to v1.0 using promise on `this.prompt` per https://github.com/yeoman/generator/releases/tag/v0.23.0 --- app/index.js | 2 +- package.json | 4 ++-- widget/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/index.js b/app/index.js index 595780e..1af9036 100644 --- a/app/index.js +++ b/app/index.js @@ -150,7 +150,7 @@ module.exports = Base.extend({ } }]; - this.prompt(prompts, function(props) { + this.prompt(prompts).then(function(props) { this.abort = props.abort; this.wabRoot = props.wabRoot; this.widgetsType = props.widgetsType; diff --git a/package.json b/package.json index c7c8533..7a9914d 100644 --- a/package.json +++ b/package.json @@ -31,12 +31,12 @@ "chalk": "^1.0.0", "underscore.string": "^3.2.3", "mkdirp": "^0.5.1", - "yeoman-generator": "^0.22.5", + "yeoman-generator": "^0.23.4", "yosay": "^1.0.2" }, "devDependencies": { "mocha": "*", "yeoman-assert": "^2.0.0", - "yeoman-test": "^1.0.0" + "yeoman-test": "^1.3.0" } } diff --git a/widget/index.js b/widget/index.js index 5e36f76..962ab4f 100644 --- a/widget/index.js +++ b/widget/index.js @@ -122,7 +122,7 @@ var WidgetGenerator = Base.extend({ choices: ['ES5', 'ES2015'] }]; - this.prompt(prompts, function (props) { + this.prompt(prompts).then(function (props) { this.widgetName = props.widgetName; this.widgetTitle = props.widgetTitle; this.description = props.description;