@canopycanopycanopy/b-ber-tasks 1.2.13-react-reader.14 → 1.2.15

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.
@@ -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()) // .then(() => this.updateLinkedResourcesWithAbsolutePaths())
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
- } // Update URLs in CSS
215
-
213
+ }
216
214
 
217
215
  updateLinkedResourcesWithAbsolutePaths() {
218
216
  const indexContents = _fsExtra.default.readFileSync(_State.default.dist.root('index.html'), 'utf8');
@@ -25,8 +25,7 @@ var _browserSync = require("browser-sync");
25
25
  var _ = require("..");
26
26
 
27
27
  const browserSync = (0, _browserSync.create)();
28
- const port = 4000; // getRandomInt(4000, 5000)
29
-
28
+ const port = 4000;
30
29
  const debounceSpeed = 500;
31
30
 
32
31
  const config = build => url => () => {
@@ -87,7 +86,7 @@ const serve = async ({
87
86
  external
88
87
  }) => {
89
88
  const location = external ? 'external' : 'local';
90
- const build_ = build ?? 'reader';
89
+ const build_ = build !== null && build !== void 0 ? build : 'reader';
91
90
  await init(build_);
92
91
  const url = browserSync.getOption('urls').get(location);
93
92
  update = config(build_)(url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopycanopycanopy/b-ber-tasks",
3
- "version": "1.2.13-react-reader.14+d9d27148",
3
+ "version": "1.2.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -19,13 +19,13 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@babel/runtime-corejs3": "^7.10.5",
22
- "@canopycanopycanopy/b-ber-lib": "1.2.12",
22
+ "@canopycanopycanopy/b-ber-lib": "1.2.15",
23
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-react-reader.14+d9d27148",
24
+ "@canopycanopycanopy/b-ber-markdown-renderer": "1.2.15",
25
+ "@canopycanopycanopy/b-ber-reader": "1.2.15",
26
26
  "@canopycanopycanopy/b-ber-resources": "1.2.12",
27
27
  "@canopycanopycanopy/b-ber-shapes-sequences": "1.2.12",
28
- "@canopycanopycanopy/b-ber-templates": "1.2.12",
28
+ "@canopycanopycanopy/b-ber-templates": "1.2.15",
29
29
  "@canopycanopycanopy/b-ber-validator": "1.2.12",
30
30
  "autoprefixer": "^9.6.1",
31
31
  "browser-sync": "^2.27.7",
@@ -54,10 +54,9 @@
54
54
  "@babel/cli": "^7.10.5",
55
55
  "@babel/core": "^7.10.5",
56
56
  "@babel/preset-env": "^7.10.4",
57
- "browserslist": "^4.17.4",
58
- "jest": "^26.6.3",
57
+ "jest": "^24.8.0",
59
58
  "mock-fs": "^4.4.2",
60
- "rimraf": "^2.7.1"
59
+ "rimraf": "^2.6.3"
61
60
  },
62
61
  "files": [
63
62
  "dist"
@@ -76,5 +75,5 @@
76
75
  "url": "https://maxwellsimmer.com"
77
76
  }
78
77
  ],
79
- "gitHead": "d9d271488a10f9f9bf7755c51ce0db129e442a7f"
78
+ "gitHead": "0ae2e14c92c5ceeb7b21563e32cdd8933becc842"
80
79
  }