diff options
Diffstat (limited to 'lib/book.js')
-rw-r--r-- | lib/book.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/book.js b/lib/book.js index c211adf..477283f 100644 --- a/lib/book.js +++ b/lib/book.js @@ -50,7 +50,6 @@ function Book(opts) { this.ignore.addPattern([ // Skip Git stuff '.git/', - '.gitignore', // Skip OS X meta data '.DS_Store', @@ -62,12 +61,7 @@ function Book(opts) { '_book', '*.pdf', '*.epub', - '*.mobi', - - // Skip config files - '.ignore', - '.bookignore', - 'book.json' + '*.mobi' ]); // Create a logger for the book @@ -124,7 +118,7 @@ Book.prototype.isFileInScope = function(filename) { Book.prototype.parseIgnoreRules = function() { var that = this; - return Promise.series([ + return Promise.serie([ '.ignore', '.gitignore', '.bookignore' @@ -132,6 +126,8 @@ Book.prototype.parseIgnoreRules = function() { return that.readFile(filename) .then(function(content) { that.ignore.addPattern(content.toString().split(/\r?\n/)); + }, function() { + return Promise(); }); }); }; @@ -158,7 +154,7 @@ Book.prototype.parse = function() { that.log.info.ln('Parsing multilingual book, with', that.langs.count(), 'languages'); // Create a new book for each language and parse it - return Promise.serial(that.langs.list(), function(lang) { + return Promise.serie(that.langs.list(), function(lang) { that.log.debug.ln('Preparing book for language', lang.id); var langBook = new Book({ fs: that.fs, |