@canopycanopycanopy/b-ber-cli 3.0.8-canary.0 → 3.0.8-nav-memo.1
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/app.js +2 -2
- package/dist/commands/build.js +2 -3
- package/dist/commands/check.js +2 -3
- package/dist/commands/cover.js +2 -3
- package/dist/commands/deploy.js +2 -3
- package/dist/commands/generate.js +2 -3
- package/dist/commands/new.js +2 -3
- package/dist/commands/opf.js +2 -3
- package/dist/commands/serve.js +2 -3
- package/dist/commands/theme.js +2 -3
- package/dist/commands/xml.js +2 -3
- package/dist/lib/config-options.js +1 -3
- package/package.json +7 -7
package/dist/app.js
CHANGED
|
@@ -11,8 +11,8 @@ exports.default = bber;
|
|
|
11
11
|
var _yargs = _interopRequireDefault(require("yargs"));
|
|
12
12
|
var _State = _interopRequireDefault(require("@canopycanopycanopy/b-ber-lib/State"));
|
|
13
13
|
var commands = _interopRequireWildcard(require("./commands"));
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
function _interopRequireWildcard(
|
|
14
|
+
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); }
|
|
15
|
+
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 && Object.prototype.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; }
|
|
16
16
|
const LINE_LENGTH = 70;
|
|
17
17
|
function bber() {
|
|
18
18
|
const showCustomHelp = () => console.log(`
|
package/dist/commands/build.js
CHANGED
|
@@ -86,10 +86,9 @@ const handler = async argv => {
|
|
|
86
86
|
}).then(() => run(sequence)).catch(console.error);
|
|
87
87
|
};
|
|
88
88
|
const builder = yargs => (0, _configOptions.withConfigOptions)(yargs).command('', 'Build all formats', noop, handler).command('epub', 'Build an Epub', noop, handler).command('mobi', 'Build a Mobi', noop, handler).command('pdf', 'Build a PDF', noop, handler).command('reader', 'Build for the b-ber-reader format', noop, handler).command('sample', 'Build a sample Epub', noop, handler).command('web', 'Build for web', noop, handler).command('xml', 'Build for XML', noop, handler).help('h').alias('h', 'help');
|
|
89
|
-
var _default = {
|
|
89
|
+
var _default = exports.default = {
|
|
90
90
|
command,
|
|
91
91
|
describe,
|
|
92
92
|
builder,
|
|
93
93
|
handler
|
|
94
|
-
};
|
|
95
|
-
exports.default = _default;
|
|
94
|
+
};
|
package/dist/commands/check.js
CHANGED
package/dist/commands/cover.js
CHANGED
|
@@ -11,10 +11,9 @@ const command = 'cover';
|
|
|
11
11
|
const describe = 'Generate a project cover';
|
|
12
12
|
const builder = yargs => yargs.fail((msg, err) => (0, _utils.fail)(msg, err, yargs)).help('h').alias('h', 'help').usage(`\nUsage: $0 cover\n\n${describe}`);
|
|
13
13
|
const handler = () => _bBerTasks.cover.init();
|
|
14
|
-
var _default = {
|
|
14
|
+
var _default = exports.default = {
|
|
15
15
|
command,
|
|
16
16
|
describe,
|
|
17
17
|
builder,
|
|
18
18
|
handler
|
|
19
|
-
};
|
|
20
|
-
exports.default = _default;
|
|
19
|
+
};
|
package/dist/commands/deploy.js
CHANGED
|
@@ -19,10 +19,9 @@ const builder = yargs => yargs.option('yes', {
|
|
|
19
19
|
type: 'string'
|
|
20
20
|
}).help('h').alias('h', 'help').usage(`\nUsage: $0 deploy\n\n${describe}`).fail((msg, err) => (0, _utils.fail)(msg, err, yargs));
|
|
21
21
|
const handler = _bBerTasks.deploy;
|
|
22
|
-
var _default = {
|
|
22
|
+
var _default = exports.default = {
|
|
23
23
|
command,
|
|
24
24
|
describe,
|
|
25
25
|
builder,
|
|
26
26
|
handler
|
|
27
|
-
};
|
|
28
|
-
exports.default = _default;
|
|
27
|
+
};
|
package/dist/commands/new.js
CHANGED
package/dist/commands/opf.js
CHANGED
|
@@ -10,10 +10,9 @@ const command = 'opf';
|
|
|
10
10
|
const describe = 'Generate the opf';
|
|
11
11
|
const builder = yargs => yargs.help('h').alias('h', 'help').usage(`\nUsage: $0 opf\n\n${describe}`);
|
|
12
12
|
const handler = _bBerTasks.opf;
|
|
13
|
-
var _default = {
|
|
13
|
+
var _default = exports.default = {
|
|
14
14
|
command,
|
|
15
15
|
describe,
|
|
16
16
|
builder,
|
|
17
17
|
handler
|
|
18
|
-
};
|
|
19
|
-
exports.default = _default;
|
|
18
|
+
};
|
package/dist/commands/serve.js
CHANGED
|
@@ -31,10 +31,9 @@ const builder = yargs => yargs.positional('build', {
|
|
|
31
31
|
describe: 'Serve from an externally accessible URL',
|
|
32
32
|
type: 'boolean'
|
|
33
33
|
}).help('h').alias('h', 'help').usage(`\nUsage: $0 serve\n\n${describe}`).fail((msg, err) => (0, _utils.fail)(msg, err, yargs));
|
|
34
|
-
var _default = {
|
|
34
|
+
var _default = exports.default = {
|
|
35
35
|
command,
|
|
36
36
|
describe,
|
|
37
37
|
builder,
|
|
38
38
|
handler
|
|
39
|
-
};
|
|
40
|
-
exports.default = _default;
|
|
39
|
+
};
|
package/dist/commands/theme.js
CHANGED
|
@@ -25,10 +25,9 @@ const builder = yargs => yargs.positional('command', {
|
|
|
25
25
|
describe: 'Name of the theme to activate',
|
|
26
26
|
type: 'string'
|
|
27
27
|
}).help('h').alias('h', 'help').usage(`\nUsage: $0 theme\n\n${describe}`).fail((msg, err) => (0, _utils.fail)(msg, err, yargs));
|
|
28
|
-
var _default = {
|
|
28
|
+
var _default = exports.default = {
|
|
29
29
|
command: _command,
|
|
30
30
|
describe,
|
|
31
31
|
builder,
|
|
32
32
|
handler
|
|
33
|
-
};
|
|
34
|
-
exports.default = _default;
|
|
33
|
+
};
|
package/dist/commands/xml.js
CHANGED
|
@@ -10,10 +10,9 @@ const command = 'xml';
|
|
|
10
10
|
const describe = 'Export a project as an XML document';
|
|
11
11
|
const builder = yargs => yargs.help('h').alias('h', 'help').usage(`\nUsage: $0 xml\n\n${describe}`);
|
|
12
12
|
const handler = _bBerTasks.xml;
|
|
13
|
-
var _default = {
|
|
13
|
+
var _default = exports.default = {
|
|
14
14
|
command,
|
|
15
15
|
describe,
|
|
16
16
|
builder,
|
|
17
17
|
handler
|
|
18
|
-
};
|
|
19
|
-
exports.default = _default;
|
|
18
|
+
};
|
|
@@ -85,9 +85,7 @@ function withConfigOptions(yargs) {
|
|
|
85
85
|
// default: '',
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
const blacklistedConfigOptions = new _set.default(['ibooks_specified_fonts', 'autoprefixer_options', 'downloads', 'ui_options']);
|
|
90
|
-
exports.blacklistedConfigOptions = blacklistedConfigOptions;
|
|
88
|
+
const blacklistedConfigOptions = exports.blacklistedConfigOptions = new _set.default(['ibooks_specified_fonts', 'autoprefixer_options', 'downloads', 'ui_options']);
|
|
91
89
|
const parseConfigFile = async configFile => {
|
|
92
90
|
const ext = _path.default.extname(configFile);
|
|
93
91
|
const configPath = _path.default.resolve(process.cwd(), configFile);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-cli",
|
|
3
|
-
"version": "3.0.8-
|
|
3
|
+
"version": "3.0.8-nav-memo.1+b6642a50",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime-corejs3": "^7.10.5",
|
|
25
|
-
"@canopycanopycanopy/b-ber-lib": "3.0.8-
|
|
26
|
-
"@canopycanopycanopy/b-ber-logger": "3.0.8-
|
|
27
|
-
"@canopycanopycanopy/b-ber-shapes-sequences": "3.0.8-
|
|
28
|
-
"@canopycanopycanopy/b-ber-tasks": "3.0.8-
|
|
29
|
-
"@canopycanopycanopy/b-ber-templates": "3.0.8-
|
|
25
|
+
"@canopycanopycanopy/b-ber-lib": "3.0.8-nav-memo.1+b6642a50",
|
|
26
|
+
"@canopycanopycanopy/b-ber-logger": "3.0.8-nav-memo.1+b6642a50",
|
|
27
|
+
"@canopycanopycanopy/b-ber-shapes-sequences": "3.0.8-nav-memo.1+b6642a50",
|
|
28
|
+
"@canopycanopycanopy/b-ber-tasks": "3.0.8-nav-memo.1+b6642a50",
|
|
29
|
+
"@canopycanopycanopy/b-ber-templates": "3.0.8-nav-memo.1+b6642a50",
|
|
30
30
|
"fs-extra": "^8.1.0",
|
|
31
31
|
"lodash": "^4.17.21",
|
|
32
32
|
"lodash.has": "latest",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"url": "https://maxwellsimmer.com"
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b6642a50841814fcec9d10d0d2111c1673c80c44"
|
|
63
63
|
}
|