'use strict';

var util = require('util');
var yeoman = require('yeoman-generator');

var Generator = module.exports = function Generator () {
	yeoman.generators.Base.apply(this, arguments);
};

util.inherits(Generator, yeoman.generators.NamedBase);

Generator.prototype.copyFiles = function () {

	var cb = this.async();
	var ignores = [
		'.git',
		'CHANGELOG.md',
		'CONTRIBUTING.md',
		'LICENSE.md',
		'README.md'
	];

	this.prompt([{
		type: 'confirm',
		name: 'docs',
		message: 'Would you like docs included?',
		default: false
	}], function (props) {
		if (props.docs) {
			this.directory('doc');
		}

		this.directory('css');
		this.directory('img');
		this.directory('js');
		this.expandFiles('*', {
			cwd: this.sourceRoot(),
			dot: true
		}).forEach(function (el) {
			if (ignores.indexOf(el) === -1) {
				this.copy(el, el);
			}
		}, this);

		cb();
	}.bind(this));

};

Generator.name = 'HTML5 Boilerplate';

'use strict';

var util = require('util');
var yeoman = require('yeoman-generator');

var Generator = module.exports = function () {
	var cb = this.async();
	var ignores = [
		'.git',
		'CHANGELOG.md',
		'CONTRIBUTING.md',
		'LICENSE.md',
		'README.md'
	];

	this.prompt([{
		type: 'confirm',
		name: 'docs',
		message: 'Would you like docs included?',
		default: false
	}], function (props) {
		if (props.docs) {
			this.directory('doc');
		}

		this.directory('css');
		this.directory('img');
		this.directory('js');
		this.expandFiles('*', {
			cwd: this.sourceRoot(),
			dot: true
		}).forEach(function (el) {
			if (ignores.indexOf(el) === -1) {
				this.copy(el, el);
			}
		}, this);

		cb();
	}.bind(this));
};

util.inherits(Generator, yeoman.generators.Base);

Generator.name = 'HTML5 Boilerplate';

--- 
+++ 
@@ -3,7 +3,14 @@
 var util = require('util');
 var yeoman = require('yeoman-generator');
 
-var Generator = module.exports = function () {
+var Generator = module.exports = function Generator () {
+	yeoman.generators.Base.apply(this, arguments);
+};
+
+util.inherits(Generator, yeoman.generators.NamedBase);
+
+Generator.prototype.copyFiles = function () {
+
 	var cb = this.async();
 	var ignores = [
 		'.git',
@@ -37,8 +44,7 @@
 
 		cb();
 	}.bind(this));
+
 };
 
-util.inherits(Generator, yeoman.generators.Base);
-
 Generator.name = 'HTML5 Boilerplate';
Make generator work with `yo` v1.0.5

Ref #12.
Fix #11.
