summaryrefslogtreecommitdiffstats
path: root/lib/generator.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generator.js')
-rw-r--r--lib/generator.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/generator.js b/lib/generator.js
index 9c4a2d3..8b310e7 100644
--- a/lib/generator.js
+++ b/lib/generator.js
@@ -26,7 +26,12 @@ BaseGenerator.prototype.callHook = function(name, data) {
// Prepare the genertor
BaseGenerator.prototype.prepare = function() {
- return this.preparePlugins();
+ var that = this;
+
+ return this.preparePlugins()
+ .then(function() {
+ return that.callHook("init");
+ });
};
BaseGenerator.prototype.preparePlugins = function() {