Skip to content

Commit

Permalink
Update dependencies to enable Greenkeeper 🌴 (#28)
Browse files Browse the repository at this point in the history
* chore(package): update dependencies

https://greenkeeper.io/

* Adjust for latest yeoman-generator version
  • Loading branch information
greenkeeper[bot] authored and SBoudrias committed Feb 12, 2017
1 parent a0689ce commit ccbf848
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var _ = require('lodash');
var rimraf = require('rimraf');
var mkdirp = require('mkdirp');
var yeoman = require('yeoman-environment');
var generators = require('yeoman-generator');
var Generator = require('yeoman-generator');
var adapter = require('./adapter');

/**
Expand Down Expand Up @@ -137,7 +137,7 @@ exports.mockLocalConfig = function (generator, localConfig) {
*/

exports.createDummyGenerator = function () {
return generators.Base.extend({
return Generator.extend({
test: function () {
this.shouldRun = true;
}
Expand Down Expand Up @@ -189,11 +189,11 @@ exports.registerDependencies = function (env, dependencies) {

/**
* Run the provided Generator
* @param {String|Function} Generator - Generator constructor or namespace
* @param {String|Function} GeneratorOrNamespace - Generator constructor or namespace
* @return {RunContext}
*/

exports.run = function (Generator, settings) {
exports.run = function (GeneratorOrNamespace, settings) {
var RunContext = require('./run-context');
return new RunContext(Generator, settings);
return new RunContext(GeneratorOrNamespace, settings);
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
},
"license": "MIT",
"dependencies": {
"inquirer": "^1.0.2",
"inquirer": "^3.0.1",
"lodash": "^4.3.0",
"mkdirp": "^0.5.1",
"pinkie-promise": "^2.0.1",
"rimraf": "^2.4.4",
"sinon": "^1.17.2",
"yeoman-environment": "^1.5.2",
"yeoman-generator": "^0.24.1"
"yeoman-generator": "^1.1.0"
}
}
8 changes: 4 additions & 4 deletions test/fixtures/generator-simple/app/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
var generators = require('yeoman-generator');
var Generator = require('yeoman-generator');

// Example of a simple generator.
//
Expand All @@ -14,9 +14,9 @@ var generators = require('yeoman-generator');
// stuff, extend from Generator.Base and defines your generator steps
// in several methods.

var Generator = module.exports = generators.Base.extend({
var SimpleGenerator = module.exports = Generator.extend({
exec: function () {}
});

Generator.description = 'And add a custom description by adding a `description` property to your function.';
Generator.usage = 'Usage can be used to customize the help output';
SimpleGenerator.description = 'And add a custom description by adding a `description` property to your function.';
SimpleGenerator.usage = 'Usage can be used to customize the help output';
4 changes: 2 additions & 2 deletions test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert');
var sinon = require('sinon');
var RunContext = require('../lib/run-context');
var yeoman = require('yeoman-environment');
var generators = require('yeoman-generator');
var Generator = require('yeoman-generator');
var helpers = require('../lib');
var env = yeoman.createEnv();

Expand All @@ -19,7 +19,7 @@ describe('yeoman-test', function () {
self.options = options;
};

util.inherits(this.StubGenerator, generators.Base);
util.inherits(this.StubGenerator, Generator);
});

describe('.registerDependencies()', function () {
Expand Down
4 changes: 2 additions & 2 deletions test/run-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var assert = require('assert');
var sinon = require('sinon');
var inquirer = require('inquirer');
var RunContext = require('../lib/run-context');
var generators = require('yeoman-generator');
var Generator = require('yeoman-generator');
var tmpdir = path.join(os.tmpdir(), 'yeoman-run-context');
var helpers = require('../lib');
var mkdirp = require('mkdirp');
Expand All @@ -17,7 +17,7 @@ describe('RunContext', function () {

this.defaultInput = inquirer.prompts.input;
this.execSpy = sinon.spy();
this.Dummy = generators.Base.extend({
this.Dummy = Generator.extend({
exec: this.execSpy
});

Expand Down

0 comments on commit ccbf848

Please sign in to comment.