Skip to content

Commit

Permalink
Greenkeeper yeoman generator 0.23.0 (#132)
Browse files Browse the repository at this point in the history
* chore(package): update yeoman-generator to version 0.23.0

* Use promise for prompts and latest Yeoman dependency versions
  • Loading branch information
daffl committed Aug 25, 2018
1 parent ba380a4 commit 48d2b81
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/generator-feathers/generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ module.exports = generators.Base.extend({
}
];

this.prompt(prompts, function (props) {
this.prompt(prompts).then(function (props) {
this.props = assign(this.props, props);
this.props.databaseName = S(this.props.name).camelize().s;
this.props.babel = process.versions.node < '5.0.0';
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-feathers/generators/hook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = generators.Base.extend({
}
];

this.prompt(prompts, function (props) {
this.prompt(prompts).then(function (props) {
this.props = assign(this.props, props);

done();
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-feathers/generators/middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = generators.Base.extend({
}
];

this.prompt(prompts, function (props) {
this.prompt(prompts).then(function (props) {
this.props = assign(this.props, props);

done();
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-feathers/generators/model/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = generators.Base.extend({
}
];

this.prompt(prompts, function (props) {
this.prompt(prompts).then(function (props) {
this.props = assign(this.props, props);
this.props.pluralizedName = inflect.pluralize(this.props.name);

Expand Down
2 changes: 1 addition & 1 deletion packages/generator-feathers/generators/service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module.exports = generators.Base.extend({
}
];

this.prompt(prompts, function (props) {
this.prompt(prompts).then(function (props) {
this.props = assign(this.props, props);
done();
}.bind(this));
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-feathers/lib/updateMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var notifyUpdate = function(cb) {
}
]
}];
this.prompt(prompts, function (props) {
this.prompt(prompts).then(function (props) {
if(props.updateGenerator === 'yes') {
spawn('npm', ['install', '-g', 'generator-feathers'], {stdio: 'inherit'})
.on('close', function(){
Expand Down
4 changes: 2 additions & 2 deletions packages/generator-feathers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@
"string": "^3.3.1",
"string-length": "^1.0.1",
"update-notifier": "^0.6.1",
"yeoman-generator": "^0.22.5"
"yeoman-generator": "^0.23.3"
},
"devDependencies": {
"babel-cli": "^6.6.5",
"babel-core": "^6.7.0",
"babel-preset-es2015": "^6.6.0",
"jshint": "^2.9.2",
"mocha": "^2.4.5",
"yeoman-test": "^1.1.0"
"yeoman-test": "^1.4.0"
}
}

0 comments on commit 48d2b81

Please sign in to comment.