forked from electricbookworks/electric-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
80 lines (66 loc) · 1.78 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Lint with JS Standard
// Import modules
const { parallel } = require('gulp')
// Import tasks
const {
epubXhtmlLinks, epubXhtmlFiles, epubCleanHtmlFiles, runEpubTransformations
} = require('./_tools/gulp/processors/epub.js')
const {
runPDFTransformations
} = require('./_tools/gulp/processors/pdf.js')
const {
imagesPrintPDF, imagesScreenPDF,
imagesEpub, imagesApp, imagesWeb,
imagesSmall, imagesMedium, imagesLarge,
imagesXLarge, imagesMax
} = require('./_tools/gulp/processors/images.js')
const {
renderIndexCommentsAsTargets, renderIndexListReferences
} = require('./_tools/gulp/processors/indexes.js')
const { js } = require('./_tools/gulp/processors/js.js')
const { svgsPrintPDF, svgsScreenPDF, svgsWeb, svgsEpub, svgsApp } = require('./_tools/gulp/processors/svgs.js')
const { yaml } = require('./_tools/gulp/processors/yaml.js')
// Make tasks available to gulp
exports.default = parallel(
svgsPrintPDF,
svgsScreenPDF,
svgsWeb,
svgsEpub,
svgsApp,
imagesPrintPDF,
imagesScreenPDF,
imagesEpub,
imagesApp,
imagesWeb,
imagesSmall,
imagesMedium,
imagesLarge,
imagesXLarge,
imagesMax)
exports.images = parallel(
imagesPrintPDF,
imagesScreenPDF,
imagesEpub,
imagesApp,
imagesWeb,
imagesSmall,
imagesMedium,
imagesLarge,
imagesXLarge,
imagesMax)
exports.epubXhtmlLinks = epubXhtmlLinks
exports.epubXhtmlFiles = epubXhtmlFiles
exports.epubCleanHtmlFiles = epubCleanHtmlFiles
exports.runEpubTransformations = runEpubTransformations
exports.runPDFTransformations = runPDFTransformations
exports.renderIndexCommentsAsTargets = renderIndexCommentsAsTargets
exports.renderIndexListReferences = renderIndexListReferences
exports.js = js
exports.svgs = parallel(
svgsPrintPDF,
svgsScreenPDF,
svgsWeb,
svgsEpub,
svgsApp
)
exports.yaml = yaml