diff options
Diffstat (limited to 'lib/generate/config.js')
-rw-r--r-- | lib/generate/config.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/generate/config.js b/lib/generate/config.js index 798bedc..13a95af 100644 --- a/lib/generate/config.js +++ b/lib/generate/config.js @@ -1,7 +1,8 @@ +var _ = require('lodash'); var path = require('path'); // Default configuration for gitbook -module.exports = { +var CONFIG = { // Folders to use for output // Caution: it overrides the value from the command line // It's not advised this option in the book.json @@ -89,3 +90,10 @@ module.exports = { } }; +module.exports = { + CONFIG: CONFIG, + defaults: function(options) { + return _.merge(options || {}, CONFIG, _.defaults); + } +} + |