diff options
Diffstat (limited to 'lib/book.js')
-rw-r--r-- | lib/book.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/book.js b/lib/book.js index 6a61753..481ca12 100644 --- a/lib/book.js +++ b/lib/book.js @@ -175,11 +175,15 @@ Book.prototype.generate = function(generator) { // Clean output folder .then(function() { - return fs.remove(that.options.output); + that.log.info("clean", that.options.generator, "generator"); + return fs.clean(that.options.output) + .progress(function(p) { + that.log.debug.ln("remove", p.file, "("+p.i+"/"+p.count+")"); + }) + .then(function() { + that.log.info.ok(); + }); }) - .then(function() { - return fs.mkdirp(that.options.output); - }) // Create generator .then(function() { |