summaryrefslogtreecommitdiffstats
path: root/lib/generators
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generators')
-rw-r--r--lib/generators/ebook.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js
index 09215c4..3063e83 100644
--- a/lib/generators/ebook.js
+++ b/lib/generators/ebook.js
@@ -44,10 +44,11 @@ Generator.prototype.writeSummary = function() {
Generator.prototype.finish = function() {
var that = this;
- return BaseGenerator.prototype.finish.apply(this)
- .then(function() {
- return that.writeSummary();
- })
+ return Q()
+ .then(this.copyAssets)
+ .then(this.copyCover)
+ .then(this.writeGlossary)
+ .then(this.writeSummary)
.then(function() {
if (!that.ebookFormat) return Q();