@canopycanopycanopy/b-ber-tasks 1.2.12 → 1.2.13-react-reader.6
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 +4 -2
- package/package.json +10 -10
package/dist/reader/index.js
CHANGED
|
@@ -46,7 +46,8 @@ 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())
|
|
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())
|
|
50
|
+
.then(() => this.updateAssetURLsWithAbsolutePaths()).then(() => this.injectWebpubManifestLink()).catch(_bBerLogger.default.error);
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
get remoteURL() {
|
|
@@ -210,7 +211,8 @@ class Reader {
|
|
|
210
211
|
contents = _fsExtra.default.readFileSync(indexHTML, 'utf8');
|
|
211
212
|
contents = contents.replace(/__SERVER_DATA__ = {}/, `__SERVER_DATA__ = ${(0, _stringify.default)(serverData)}`);
|
|
212
213
|
return _fsExtra.default.writeFile(indexHTML, contents);
|
|
213
|
-
}
|
|
214
|
+
} // Update URLs in CSS
|
|
215
|
+
|
|
214
216
|
|
|
215
217
|
updateLinkedResourcesWithAbsolutePaths() {
|
|
216
218
|
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.
|
|
3
|
+
"version": "1.2.13-react-reader.6+5f5ac8b3",
|
|
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.
|
|
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.13-react-reader.6+5f5ac8b3",
|
|
23
|
+
"@canopycanopycanopy/b-ber-logger": "1.2.13-react-reader.6+5f5ac8b3",
|
|
24
|
+
"@canopycanopycanopy/b-ber-markdown-renderer": "1.2.13-react-reader.6+5f5ac8b3",
|
|
25
|
+
"@canopycanopycanopy/b-ber-reader": "1.2.13-react-reader.6+5f5ac8b3",
|
|
26
|
+
"@canopycanopycanopy/b-ber-resources": "1.2.13-react-reader.6+5f5ac8b3",
|
|
27
|
+
"@canopycanopycanopy/b-ber-shapes-sequences": "1.2.13-react-reader.6+5f5ac8b3",
|
|
28
|
+
"@canopycanopycanopy/b-ber-templates": "1.2.13-react-reader.6+5f5ac8b3",
|
|
29
|
+
"@canopycanopycanopy/b-ber-validator": "1.2.13-react-reader.6+5f5ac8b3",
|
|
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": "5f5ac8b3704149ac656dd852aaac311eea945d65"
|
|
79
79
|
}
|