@canopycanopycanopy/b-ber-tasks 1.2.13-react-reader.6 → 1.2.13
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/reader/index.js +2 -4
- package/package.json +10 -10
package/dist/reader/index.js
CHANGED
|
@@ -46,8 +46,7 @@ class Reader {
|
|
|
46
46
|
this.readerModuleName = '@canopycanopycanopy/b-ber-reader';
|
|
47
47
|
this.readerModuleDistDir = 'dist';
|
|
48
48
|
this.readerAppPath = null;
|
|
49
|
-
return this.createOutputDirs().then(() => this.ensureReaderModuleExists()).then(() => this.copyEpubToOutputDir()).then(() => this.writeBookManifest()).then(() => this.writeWebpubManifest()).then(() => this.copyReaderAppToOutputDir()).then(() => this.injectServerDataIntoTemplate())
|
|
50
|
-
.then(() => this.updateAssetURLsWithAbsolutePaths()).then(() => this.injectWebpubManifestLink()).catch(_bBerLogger.default.error);
|
|
49
|
+
return this.createOutputDirs().then(() => this.ensureReaderModuleExists()).then(() => this.copyEpubToOutputDir()).then(() => this.writeBookManifest()).then(() => this.writeWebpubManifest()).then(() => this.copyReaderAppToOutputDir()).then(() => this.injectServerDataIntoTemplate()).then(() => this.updateLinkedResourcesWithAbsolutePaths()).then(() => this.updateAssetURLsWithAbsolutePaths()).then(() => this.injectWebpubManifestLink()).catch(_bBerLogger.default.error);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
get remoteURL() {
|
|
@@ -211,8 +210,7 @@ class Reader {
|
|
|
211
210
|
contents = _fsExtra.default.readFileSync(indexHTML, 'utf8');
|
|
212
211
|
contents = contents.replace(/__SERVER_DATA__ = {}/, `__SERVER_DATA__ = ${(0, _stringify.default)(serverData)}`);
|
|
213
212
|
return _fsExtra.default.writeFile(indexHTML, contents);
|
|
214
|
-
}
|
|
215
|
-
|
|
213
|
+
}
|
|
216
214
|
|
|
217
215
|
updateLinkedResourcesWithAbsolutePaths() {
|
|
218
216
|
const indexContents = _fsExtra.default.readFileSync(_State.default.dist.root('index.html'), 'utf8');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-tasks",
|
|
3
|
-
"version": "1.2.13
|
|
3
|
+
"version": "1.2.13",
|
|
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": "1.2.
|
|
23
|
-
"@canopycanopycanopy/b-ber-logger": "1.2.
|
|
24
|
-
"@canopycanopycanopy/b-ber-markdown-renderer": "1.2.
|
|
25
|
-
"@canopycanopycanopy/b-ber-reader": "1.2.13
|
|
26
|
-
"@canopycanopycanopy/b-ber-resources": "1.2.
|
|
27
|
-
"@canopycanopycanopy/b-ber-shapes-sequences": "1.2.
|
|
28
|
-
"@canopycanopycanopy/b-ber-templates": "1.2.
|
|
29
|
-
"@canopycanopycanopy/b-ber-validator": "1.2.
|
|
22
|
+
"@canopycanopycanopy/b-ber-lib": "1.2.12",
|
|
23
|
+
"@canopycanopycanopy/b-ber-logger": "1.2.12",
|
|
24
|
+
"@canopycanopycanopy/b-ber-markdown-renderer": "1.2.12",
|
|
25
|
+
"@canopycanopycanopy/b-ber-reader": "1.2.13",
|
|
26
|
+
"@canopycanopycanopy/b-ber-resources": "1.2.12",
|
|
27
|
+
"@canopycanopycanopy/b-ber-shapes-sequences": "1.2.12",
|
|
28
|
+
"@canopycanopycanopy/b-ber-templates": "1.2.12",
|
|
29
|
+
"@canopycanopycanopy/b-ber-validator": "1.2.12",
|
|
30
30
|
"autoprefixer": "^9.6.1",
|
|
31
31
|
"browser-sync": "^2.27.7",
|
|
32
32
|
"bs-html-injector": "^3.0.3",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"url": "https://maxwellsimmer.com"
|
|
76
76
|
}
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "af49c5bfb3f662b112bc3685a55564d4e12b9073"
|
|
79
79
|
}
|