@riboseinc/anafero-cli 0.0.22 → 0.0.24
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/bootstrap.css +52 -145
- package/bootstrap.css.map +3 -3
- package/bootstrap.js +590 -751
- package/bootstrap.js.map +4 -4
- package/build-site.css +52 -145
- package/build-site.mjs +280 -757
- package/generate-to-filesystem.tsx +18 -3
- package/package.json +1 -1
- package/riboseinc-anafero-cli-0.0.24.tgz +0 -0
- package/riboseinc-anafero-cli-0.0.22.tgz +0 -0
|
@@ -112,7 +112,11 @@ const build = Command.
|
|
|
112
112
|
currentRevision: unpackOption(currentRevision)!,
|
|
113
113
|
}, (task, progress) => onProgress(`build site|${task}`, progress), {
|
|
114
114
|
pathPrefix: prefix,
|
|
115
|
-
|
|
115
|
+
debug: {
|
|
116
|
+
dumpCache: debug || false,
|
|
117
|
+
reactDevTools: debug || false,
|
|
118
|
+
reactStrictMode: debug || false,
|
|
119
|
+
},
|
|
116
120
|
});
|
|
117
121
|
const [writeProgress, writingSubtask] = onProgress('build site|write files');
|
|
118
122
|
for await (const blobchunk of generator) {
|
|
@@ -350,7 +354,14 @@ async function getRefsToBuild(revisionsToBuild: VersionBuildConfig) {
|
|
|
350
354
|
async function * generateSite(
|
|
351
355
|
revisionsToBuild: VersionBuildConfig | undefined,
|
|
352
356
|
onProgress: TaskProgressCallback,
|
|
353
|
-
opts?: {
|
|
357
|
+
opts?: {
|
|
358
|
+
pathPrefix?: string | undefined;
|
|
359
|
+
debug?: {
|
|
360
|
+
dumpCache?: boolean;
|
|
361
|
+
reactDevTools?: boolean;
|
|
362
|
+
reactStrictMode?: boolean;
|
|
363
|
+
};
|
|
364
|
+
},
|
|
354
365
|
) {
|
|
355
366
|
if (revisionsToBuild !== undefined) {
|
|
356
367
|
|
|
@@ -417,6 +428,10 @@ async function * generateSite(
|
|
|
417
428
|
},
|
|
418
429
|
getDOMStub: (() => (new JSDOM('<html></html>')).window.document),
|
|
419
430
|
cache,
|
|
431
|
+
debug: {
|
|
432
|
+
reactStrictMode: opts?.debug?.reactStrictMode || false,
|
|
433
|
+
reactDevTools: opts?.debug?.reactDevTools || false,
|
|
434
|
+
},
|
|
420
435
|
pathPrefix: opts?.pathPrefix,
|
|
421
436
|
decodeXML: (blob) =>
|
|
422
437
|
new JSDOM(
|
|
@@ -427,7 +442,7 @@ async function * generateSite(
|
|
|
427
442
|
},
|
|
428
443
|
);
|
|
429
444
|
} finally {
|
|
430
|
-
if (opts?.dumpCache) {
|
|
445
|
+
if (opts?.debug?.dumpCache) {
|
|
431
446
|
try {
|
|
432
447
|
fs.writeFileSync(
|
|
433
448
|
'cacheDump.json',
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|