@canopycanopycanopy/b-ber-shapes-sequences 3.0.8-nav.0 → 3.0.8-next.61
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/README.md +20 -4
- package/package.json +2 -2
- package/sequences/index.js +2 -4
package/README.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# b-ber-shapes-sequences
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A data package that defines the ordered task sequences for each b-ber build target. It exports a `build` array containing the shared base sequence of task names (clean, container, cover, sass, copy, scripts, render, loi, footnotes, inject, opf) and a `sequences` object that maps each output format (epub, mobi, pdf, web, sample, reader, xml) to the base sequence extended with its format-specific tail tasks. It also exports `createBuildSequence`, a helper that filters a list of desired format names against the known sequences and returns the matched keys (defaulting to all formats if none match).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
import {
|
|
9
|
+
sequences,
|
|
10
|
+
createBuildSequence,
|
|
11
|
+
} from '@canopycanopycanopy/b-ber-shapes-sequences'
|
|
12
|
+
|
|
13
|
+
const toRun = createBuildSequence(['epub', 'web'])
|
|
14
|
+
// => ['epub', 'web']
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
This package is consumed by the b-ber CLI to determine which task pipeline to execute for a given build command.
|
|
18
|
+
|
|
19
|
+
## Dev
|
|
6
20
|
|
|
7
21
|
```
|
|
8
|
-
|
|
22
|
+
npm test
|
|
9
23
|
```
|
|
24
|
+
|
|
25
|
+
Tests verify that the `build` array and all format-keyed sequences export correctly.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-shapes-sequences",
|
|
3
|
-
"version": "3.0.8-
|
|
3
|
+
"version": "3.0.8-next.61+2bbec564",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"url": "https://maxwellsimmer.com"
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "2bbec5643278f53becb0d2ba1f55edfe379d5587"
|
|
54
54
|
}
|
package/sequences/index.js
CHANGED
|
@@ -5,8 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.build = void 0;
|
|
8
|
-
const build = ['clean', 'container', 'cover', 'sass', 'copy', 'scripts', 'render', 'loi', 'footnotes', 'inject', 'opf'];
|
|
9
|
-
exports.build = build;
|
|
8
|
+
const build = exports.build = ['clean', 'container', 'cover', 'sass', 'copy', 'scripts', 'render', 'loi', 'footnotes', 'inject', 'opf'];
|
|
10
9
|
const sequences = {
|
|
11
10
|
epub: [...build, 'epub'],
|
|
12
11
|
mobi: [...build, 'mobiCSS', 'mobi'],
|
|
@@ -16,5 +15,4 @@ const sequences = {
|
|
|
16
15
|
reader: [...build, 'reader'],
|
|
17
16
|
xml: [...build, 'xml']
|
|
18
17
|
};
|
|
19
|
-
var _default = sequences;
|
|
20
|
-
exports.default = _default;
|
|
18
|
+
var _default = exports.default = sequences;
|