@canopycanopycanopy/b-ber-tasks 3.0.8-vimeo.0 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/container/index.js +1 -2
- package/dist/copy/index.js +1 -2
- package/dist/cover/index.js +1 -2
- package/dist/deploy/index.js +1 -2
- package/dist/epub/index.js +1 -2
- package/dist/footnotes/index.js +1 -2
- package/dist/generate/index.js +1 -2
- package/dist/init/index.js +1 -2
- package/dist/inject/index.js +1 -2
- package/dist/loi/index.js +1 -2
- package/dist/mobi/index.js +1 -2
- package/dist/mobi/mobi-css.js +1 -6
- package/dist/opf/ManifestAndMetadata.js +1 -2
- package/dist/opf/Navigation.js +1 -2
- package/dist/opf/Opf.js +1 -2
- package/dist/opf/index.js +1 -2
- package/dist/pdf/index.js +1 -2
- package/dist/reader/index.js +1 -2
- package/dist/render/index.js +1 -2
- package/dist/sample/index.js +1 -2
- package/dist/sass/index.js +1 -2
- package/dist/scripts/index.js +1 -2
- package/dist/serialize.js +4 -4
- package/dist/serve/index.js +1 -2
- package/dist/validate/index.js +3 -4
- package/dist/web/Template.js +1 -2
- package/dist/web/index.js +1 -2
- package/dist/xml/index.js +1 -2
- package/package.json +10 -10
package/dist/container/index.js
CHANGED
package/dist/copy/index.js
CHANGED
package/dist/cover/index.js
CHANGED
package/dist/deploy/index.js
CHANGED
|
@@ -185,5 +185,4 @@ function main({
|
|
|
185
185
|
return deployWithPrompt(config);
|
|
186
186
|
}).then(() => setCachePolicy(config, cacheArgsBucket)).then(() => setCachePolicy(config, cacheArgsFiles)).then(() => setCachePolicy(config, cacheArgsHTML)).catch(_bBerLogger.default.error);
|
|
187
187
|
}
|
|
188
|
-
var _default = main;
|
|
189
|
-
exports.default = _default;
|
|
188
|
+
var _default = exports.default = main;
|
package/dist/epub/index.js
CHANGED
package/dist/footnotes/index.js
CHANGED
package/dist/generate/index.js
CHANGED
package/dist/init/index.js
CHANGED
|
@@ -70,5 +70,4 @@ class Initializer {
|
|
|
70
70
|
this.createAssets().then(() => this.copyImages()).then(() => this.setTheme()).then(() => _bBerLogger.default.notice(`Created new project [${this.name}]`)).catch(_bBerLogger.default.error);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var _default = Initializer;
|
|
74
|
-
exports.default = _default;
|
|
73
|
+
var _default = exports.default = Initializer;
|
package/dist/inject/index.js
CHANGED
package/dist/loi/index.js
CHANGED
package/dist/mobi/index.js
CHANGED
|
@@ -36,5 +36,4 @@ const mobi = () => {
|
|
|
36
36
|
flags: ['--mobi-file-type=both', '--disable-font-rescaling', '--no-inline-toc', '--chapter="/"', '--chapter-mark=none', '--disable-remove-fake-margins', `--page-breaks-before='${pageBreakBeforeXPATH()}'`]
|
|
37
37
|
}).catch(_bBerLogger.default.error);
|
|
38
38
|
};
|
|
39
|
-
var _default = mobi;
|
|
40
|
-
exports.default = _default;
|
|
39
|
+
var _default = exports.default = mobi;
|
package/dist/mobi/mobi-css.js
CHANGED
|
@@ -43,11 +43,9 @@ const process = file => _fsExtra.default.readFile(file, 'utf8').then(data => {
|
|
|
43
43
|
}
|
|
44
44
|
jj++; // eslint-disable-line no-plusplus
|
|
45
45
|
}
|
|
46
|
-
|
|
47
46
|
j--; // eslint-disable-line no-plusplus
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
|
-
|
|
51
49
|
if ((0, _indexOf.default)(blackListedTypes).call(blackListedTypes, rule.type) > -1) {
|
|
52
50
|
var _context3;
|
|
53
51
|
_bBerLogger.default.info(`mobiCSS remove ${rule.type} [${rule[rule.type]}]`);
|
|
@@ -68,10 +66,8 @@ const process = file => _fsExtra.default.readFile(file, 'utf8').then(data => {
|
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
|
-
|
|
72
69
|
i--; // eslint-disable-line no-plusplus
|
|
73
70
|
}
|
|
74
|
-
|
|
75
71
|
const content = _css.default.stringify(ast);
|
|
76
72
|
return {
|
|
77
73
|
file,
|
|
@@ -86,5 +82,4 @@ const mobiCSS = () => {
|
|
|
86
82
|
return process(file).then(write);
|
|
87
83
|
})).catch(_bBerLogger.default.error));
|
|
88
84
|
};
|
|
89
|
-
var _default = mobiCSS;
|
|
90
|
-
exports.default = _default;
|
|
85
|
+
var _default = exports.default = mobiCSS;
|
package/dist/opf/Navigation.js
CHANGED
|
@@ -196,5 +196,4 @@ class Navigation {
|
|
|
196
196
|
return Navigation.createEmptyNavDocuments().then(() => Navigation.compareXhtmlWithYaml()).then(() => _promise.default.all([Navigation.createTocStringsFromTemplate(), Navigation.createNcxStringsFromTemplate(), Navigation.createGuideStringsFromTemplate(), Navigation.createSpineStringsFromTemplate()])).then(resp => Navigation.writeFiles(resp)).catch(_bBerLogger.default.error);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var _default = Navigation;
|
|
200
|
-
exports.default = _default;
|
|
199
|
+
var _default = exports.default = Navigation;
|
package/dist/opf/Opf.js
CHANGED
package/dist/opf/index.js
CHANGED
|
@@ -28,5 +28,4 @@ var _Opf = _interopRequireDefault(require("./Opf"));
|
|
|
28
28
|
var _ManifestAndMetadata = _interopRequireDefault(require("./ManifestAndMetadata"));
|
|
29
29
|
var _Navigation = _interopRequireDefault(require("./Navigation"));
|
|
30
30
|
const opf = _Opf.default.createOpf;
|
|
31
|
-
var _default = opf;
|
|
32
|
-
exports.default = _default;
|
|
31
|
+
var _default = exports.default = opf;
|
package/dist/pdf/index.js
CHANGED
package/dist/reader/index.js
CHANGED
package/dist/render/index.js
CHANGED
package/dist/sample/index.js
CHANGED
|
@@ -8,5 +8,4 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
10
10
|
const sample = () => _promise.default.resolve();
|
|
11
|
-
var _default = sample;
|
|
12
|
-
exports.default = _default;
|
|
11
|
+
var _default = exports.default = sample;
|
package/dist/sass/index.js
CHANGED
|
@@ -182,5 +182,4 @@ const writeCSSFile = ({
|
|
|
182
182
|
return _fsExtra.default.writeFile(_State.default.dist.stylesheets(fileName), css);
|
|
183
183
|
};
|
|
184
184
|
const sass = () => ensureCSSDir().then(copyThemeAssets).then(createSCSSString).then(renderCSS).then(applyPostProcessing).then(writeCSSFile).catch(_bBerLogger.default.error);
|
|
185
|
-
var _default = sass;
|
|
186
|
-
exports.default = _default;
|
|
185
|
+
var _default = exports.default = sass;
|
package/dist/scripts/index.js
CHANGED
|
@@ -51,5 +51,4 @@ const write = () => _fsExtra.default.readdir(_State.default.src.javascripts()).t
|
|
|
51
51
|
});
|
|
52
52
|
const ensureDir = () => _fsExtra.default.mkdirp(_State.default.dist.javascripts());
|
|
53
53
|
const scripts = () => ensureDir().then(write).catch(_bBerLogger.default.error);
|
|
54
|
-
var _default = scripts;
|
|
55
|
-
exports.default = _default;
|
|
54
|
+
var _default = exports.default = scripts;
|
package/dist/serialize.js
CHANGED
|
@@ -13,8 +13,8 @@ var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-st
|
|
|
13
13
|
var _bBerLogger = _interopRequireDefault(require("@canopycanopycanopy/b-ber-logger"));
|
|
14
14
|
var _State = _interopRequireDefault(require("@canopycanopycanopy/b-ber-lib/State"));
|
|
15
15
|
var tasks = _interopRequireWildcard(require(".."));
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
// This is basically the engine of our application. `serialize` is responsible
|
|
19
19
|
// for taking in the list of tasks that need to be run, calling their
|
|
20
20
|
// associated handlers, handling errors if any are encountered, and then
|
|
@@ -30,6 +30,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
30
30
|
// `serialize` works by calling the handlers that are exported by `bber-
|
|
31
31
|
// output/index.js` directly.
|
|
32
32
|
//
|
|
33
|
+
|
|
33
34
|
const validate = fn => {
|
|
34
35
|
if (typeof fn !== 'function') {
|
|
35
36
|
throw new Error(`async#serialize: Invalid parameter [${fn}] is [${typeof fn}], expected [function]`);
|
|
@@ -53,5 +54,4 @@ const taskReducer = (acc, curr) => {
|
|
|
53
54
|
});
|
|
54
55
|
};
|
|
55
56
|
const serialize = sequence => (0, _reduce.default)(sequence).call(sequence, taskReducer, _promise.default.resolve()).then(done).catch(_bBerLogger.default.error);
|
|
56
|
-
var _default = serialize;
|
|
57
|
-
exports.default = _default;
|
|
57
|
+
var _default = exports.default = serialize;
|
package/dist/serve/index.js
CHANGED
|
@@ -80,5 +80,4 @@ const serve = async ({
|
|
|
80
80
|
browserSync.instance.setOption('open', location);
|
|
81
81
|
browserSync.instance.utils.openBrowser(url, browserSync.instance.options, browserSync.instance);
|
|
82
82
|
};
|
|
83
|
-
var _default = serve;
|
|
84
|
-
exports.default = _default;
|
|
83
|
+
var _default = exports.default = serve;
|
package/dist/validate/index.js
CHANGED
|
@@ -17,8 +17,8 @@ var _path = _interopRequireDefault(require("path"));
|
|
|
17
17
|
var _State = _interopRequireDefault(require("@canopycanopycanopy/b-ber-lib/State"));
|
|
18
18
|
var _bBerLogger = _interopRequireDefault(require("@canopycanopycanopy/b-ber-logger"));
|
|
19
19
|
var _bBerValidator = _interopRequireWildcard(require("@canopycanopycanopy/b-ber-validator"));
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
const validate = async ({
|
|
23
23
|
project
|
|
24
24
|
}) => {
|
|
@@ -48,5 +48,4 @@ const validate = async ({
|
|
|
48
48
|
}
|
|
49
49
|
_bBerLogger.default.info(errors);
|
|
50
50
|
};
|
|
51
|
-
var _default = validate;
|
|
52
|
-
exports.default = _default;
|
|
51
|
+
var _default = exports.default = validate;
|
package/dist/web/Template.js
CHANGED
package/dist/web/index.js
CHANGED
|
@@ -368,5 +368,4 @@ const web = () => initialize().then(unlinkRedundantAssets)
|
|
|
368
368
|
|
|
369
369
|
// write scripts into HTML files
|
|
370
370
|
.then(importVendorScripts).then(writeWebpubManifest).then(writeWebWorker).catch(_bBerLogger.default.error);
|
|
371
|
-
var _default = web;
|
|
372
|
-
exports.default = _default;
|
|
371
|
+
var _default = exports.default = web;
|
package/dist/xml/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-tasks",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/runtime-corejs3": "^7.10.5",
|
|
22
|
-
"@canopycanopycanopy/b-ber-lib": "3.0.
|
|
23
|
-
"@canopycanopycanopy/b-ber-logger": "3.0.
|
|
24
|
-
"@canopycanopycanopy/b-ber-markdown-renderer": "3.0.
|
|
25
|
-
"@canopycanopycanopy/b-ber-reader": "3.0.
|
|
26
|
-
"@canopycanopycanopy/b-ber-resources": "3.0.
|
|
27
|
-
"@canopycanopycanopy/b-ber-shapes-sequences": "3.0.
|
|
28
|
-
"@canopycanopycanopy/b-ber-templates": "3.0.
|
|
29
|
-
"@canopycanopycanopy/b-ber-validator": "3.0.
|
|
22
|
+
"@canopycanopycanopy/b-ber-lib": "3.0.9",
|
|
23
|
+
"@canopycanopycanopy/b-ber-logger": "3.0.9",
|
|
24
|
+
"@canopycanopycanopy/b-ber-markdown-renderer": "3.0.9",
|
|
25
|
+
"@canopycanopycanopy/b-ber-reader": "3.0.9",
|
|
26
|
+
"@canopycanopycanopy/b-ber-resources": "3.0.9",
|
|
27
|
+
"@canopycanopycanopy/b-ber-shapes-sequences": "3.0.9",
|
|
28
|
+
"@canopycanopycanopy/b-ber-templates": "3.0.9",
|
|
29
|
+
"@canopycanopycanopy/b-ber-validator": "3.0.9",
|
|
30
30
|
"autoprefixer": "^9.6.1",
|
|
31
31
|
"browser-sync": "^2.27.7",
|
|
32
32
|
"bs-html-injector": "^3.0.3",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"url": "https://maxwellsimmer.com"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "c5dc2ab27068cd5ecb1e7a205d4f97077e4b6c41"
|
|
80
80
|
}
|