diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-21 13:36:09 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-21 13:36:09 +0100 |
commit | c6e3a272849ce11a44889dd31e6a5889bdd648fe (patch) | |
tree | a208fd2d6de896633f839dc40daebab7dbfaa7ff /lib/generator.js | |
parent | b5d7e7966f52386486998299e2f96116ca9cef27 (diff) | |
download | gitbook-c6e3a272849ce11a44889dd31e6a5889bdd648fe.zip gitbook-c6e3a272849ce11a44889dd31e6a5889bdd648fe.tar.gz gitbook-c6e3a272849ce11a44889dd31e6a5889bdd648fe.tar.bz2 |
Add normalization of plugins
Diffstat (limited to 'lib/generator.js')
-rw-r--r-- | lib/generator.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/generator.js b/lib/generator.js index d8fd38a..f495d8d 100644 --- a/lib/generator.js +++ b/lib/generator.js @@ -3,6 +3,8 @@ var path = require("path"); var Q = require("q"); var fs = require("./utils/fs"); +var Plugin = require("./plugin"); + var BaseGenerator = function(book) { this.book = book; @@ -28,7 +30,10 @@ BaseGenerator.prototype.prepare = function() { BaseGenerator.prototype.preparePlugins = function() { var that = this; - return Q(); + return Plugin.normalize(that.book.plugins) + .then(function(_plugins) { + that.plugins = _plugins; + }); }; // Write a parsed file to the output |