ssqch 0.9.0 → 0.10.0
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 +1 -1
- package/bundled/docs/agents.md +70 -0
- package/bundled/docs/benchmarks.md +29 -0
- package/bundled/docs/build-summary.md +27 -0
- package/bundled/docs/comparing-builds.md +51 -0
- package/bundled/docs/configuring.md +138 -0
- package/bundled/docs/content-schemas.md +54 -0
- package/bundled/docs/css-and-javascript.md +33 -0
- package/bundled/docs/data-files.md +55 -0
- package/bundled/docs/deploying.md +47 -0
- package/bundled/docs/field-guide.md +144 -0
- package/bundled/docs/footprint.md +27 -0
- package/bundled/docs/github-pages.md +41 -0
- package/bundled/docs/index.md +26 -0
- package/bundled/docs/install.md +27 -0
- package/bundled/docs/known-gaps.md +18 -0
- package/bundled/docs/markdown.md +114 -0
- package/bundled/docs/multilingual.md +14 -0
- package/bundled/docs/nav.yml +50 -0
- package/bundled/docs/netlify.md +30 -0
- package/bundled/docs/new-pages.md +42 -0
- package/bundled/docs/plugins.md +13 -0
- package/bundled/docs/rust-plugins.md +32 -0
- package/bundled/docs/seo.md +19 -0
- package/bundled/docs/template-languages.md +106 -0
- package/bundled/docs/templates.md +37 -0
- package/bundled/docs/themes.md +31 -0
- package/bundled/{trailheads → docs/trailheads}/from-component-frameworks.md +7 -3
- package/bundled/{trailheads → docs/trailheads}/from-docusaurus.md +7 -4
- package/bundled/{trailheads → docs/trailheads}/from-eleventy.md +7 -4
- package/bundled/{trailheads → docs/trailheads}/from-hexo.md +7 -4
- package/bundled/{trailheads → docs/trailheads}/from-jekyll.md +6 -3
- package/bundled/{trailheads → docs/trailheads}/from-mkdocs.md +8 -5
- package/bundled/{trailheads → docs/trailheads}/from-zola.md +6 -3
- package/bundled/docs/trailheads.md +38 -0
- package/bundled/docs/where-values-come-from.md +57 -0
- package/bundled/ssqch.d.ts +3 -1
- package/lib/assets.js +15 -7
- package/lib/{chunk-GUKSZ2XM.js → chunk-2LEOPLTZ.js} +2 -2
- package/lib/{chunk-3K3ANWZ2.js → chunk-3EPHKJEG.js} +3 -3
- package/lib/{chunk-SXMJ52IK.js → chunk-3HHRKG33.js} +56 -16
- package/lib/{chunk-NCWFYT74.js → chunk-5DNDSNTP.js} +3 -3
- package/lib/{chunk-TVU3OPPK.js → chunk-7HXCQEGA.js} +3 -3
- package/lib/{chunk-GRWMGC7D.js → chunk-BGCBSQ4A.js} +3054 -3053
- package/lib/{chunk-3A647I3N.js → chunk-CB6YFUXU.js} +3 -3
- package/lib/{chunk-7RDRZHJD.js → chunk-DMVJ53SM.js} +9 -9
- package/lib/{chunk-IJWHOFRP.js → chunk-DW7VMJEZ.js} +9 -9
- package/lib/{chunk-SURPOAW7.js → chunk-E5UB2YY7.js} +6 -6
- package/lib/{chunk-D2XE2GTY.js → chunk-EEJDLCD3.js} +7 -7
- package/lib/{chunk-7PWCYHTJ.js → chunk-HDQ4SRWM.js} +3 -3
- package/lib/{chunk-7SD7K567.js → chunk-HGJ5VWUR.js} +1 -1
- package/lib/{chunk-76NTVE34.js → chunk-JWCCVTTR.js} +1 -1
- package/lib/{chunk-TICWN55Z.js → chunk-JXZT5L7W.js} +2 -2
- package/lib/{chunk-MI6EJWA2.js → chunk-LAV3DEY4.js} +1 -1
- package/lib/{chunk-7XLK2GEG.js → chunk-LCPSKHAV.js} +1 -1
- package/lib/{chunk-II5DEH3Q.js → chunk-N4O5MDIB.js} +2 -2
- package/lib/{chunk-HPXAZ2HU.js → chunk-NFJJKDRI.js} +1 -1
- package/lib/{chunk-LPHNACE4.js → chunk-NUUEOGLZ.js} +8 -8
- package/lib/{chunk-NNUKIGOO.js → chunk-Q4LFTYK2.js} +11 -11
- package/lib/{chunk-R7K3D5W5.js → chunk-QMA7CK7B.js} +29 -6
- package/lib/{chunk-SF4I6Z7S.js → chunk-RJFWTW2Y.js} +2 -2
- package/lib/{chunk-BEGC7YP6.js → chunk-RKFZSVNF.js} +6 -6
- package/lib/{chunk-XMXBHXZR.js → chunk-RM5Q3KFB.js} +9 -9
- package/lib/{chunk-RNJFPFXE.js → chunk-RVBNVGZV.js} +3 -3
- package/lib/{chunk-CZ4XQC56.js → chunk-SA5KSJ4Y.js} +8 -4
- package/lib/{chunk-DELWRJAO.js → chunk-SRNLKWXL.js} +60 -35
- package/lib/{chunk-YTHQBMDJ.js → chunk-Y2ESFAAD.js} +2 -3
- package/lib/{chunk-47P4YREZ.js → chunk-ZM6TU2JB.js} +6 -6
- package/lib/cli.js +20 -20
- package/lib/elements.js +7 -7
- package/lib/image.js +8 -8
- package/lib/links.js +10 -10
- package/lib/minify.js +7 -7
- package/lib/redirects.js +8 -8
- package/lib/rss.js +20 -19
- package/lib/sass.js +7 -7
- package/lib/sitemap.js +7 -7
- package/lib/ssqch.js +4 -4
- package/package.json +2 -2
- package/types/index.d.ts +2 -0
- package/types/rss.d.ts +1 -1
- package/bundled/README.md +0 -1314
- package/lib/{chunk-GRWMGC7D.js.LEGAL.txt → chunk-BGCBSQ4A.js.LEGAL.txt} +3 -3
- /package/lib/{chunk-DELWRJAO.js.LEGAL.txt → chunk-SRNLKWXL.js.LEGAL.txt} +0 -0
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
builtinFilters,
|
|
8
8
|
excerpt,
|
|
9
9
|
headings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CB6YFUXU.js";
|
|
11
11
|
import {
|
|
12
12
|
measure,
|
|
13
13
|
overBudget
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-N4O5MDIB.js";
|
|
15
15
|
import {
|
|
16
16
|
checkPages,
|
|
17
17
|
rewriteBase
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QMA7CK7B.js";
|
|
19
19
|
import {
|
|
20
20
|
VERSION
|
|
21
21
|
} from "./chunk-AD3HAW3W.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
saveFenceCache,
|
|
33
33
|
site,
|
|
34
34
|
writeHighlightCss
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5DNDSNTP.js";
|
|
36
36
|
import {
|
|
37
37
|
closest,
|
|
38
38
|
closestPath
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
globSet,
|
|
43
43
|
globToRegExp,
|
|
44
44
|
isGlob
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NFJJKDRI.js";
|
|
46
46
|
import {
|
|
47
47
|
ISSUES_URL,
|
|
48
48
|
PASSED_THIS_TREE,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
settle,
|
|
55
55
|
shownPath,
|
|
56
56
|
watchSettle
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JWCCVTTR.js";
|
|
58
58
|
import {
|
|
59
59
|
BuildError,
|
|
60
60
|
Diagnostics,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
toDate,
|
|
85
85
|
warn,
|
|
86
86
|
warning
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-BGCBSQ4A.js";
|
|
88
88
|
import {
|
|
89
89
|
comparePaths,
|
|
90
90
|
compareText,
|
|
@@ -35870,7 +35870,7 @@ var Site = class {
|
|
|
35870
35870
|
const [themePages, themeCopies] = this.themeFiles();
|
|
35871
35871
|
this.files.push(...themePages);
|
|
35872
35872
|
this.themeCopies = themeCopies;
|
|
35873
|
-
const commitDates = config.lastModified === "git" ? this.gitDates() : /* @__PURE__ */ new Map();
|
|
35873
|
+
const commitDates = config.lastModified === "git" || config.dateFallback === "git" ? this.gitDates(config.lastModified === "git" ? "lastModified" : "dateFallback") : /* @__PURE__ */ new Map();
|
|
35874
35874
|
const dirData = await this.loadDirectoryData();
|
|
35875
35875
|
const sources = await readAll(this.files);
|
|
35876
35876
|
const tpls = await collectErrors(this.files.map((file, i2) => () => this.loadTemplate(file, sources[i2], dirData, commitDates)));
|
|
@@ -35882,8 +35882,9 @@ var Site = class {
|
|
|
35882
35882
|
this.drafts = tpls.length - this.tpls.length;
|
|
35883
35883
|
timer.lap("read");
|
|
35884
35884
|
const overCollections = (t) => typeof t.data.pagination?.data === "string" && t.data.pagination.data.startsWith("collections");
|
|
35885
|
-
const
|
|
35886
|
-
const
|
|
35885
|
+
const waits = (t) => overCollections(t) || readsCollections(t.data.computed);
|
|
35886
|
+
const immediate = this.tpls.filter((t) => !waits(t));
|
|
35887
|
+
const deferred = this.tpls.filter(waits);
|
|
35887
35888
|
const add2 = (pages) => {
|
|
35888
35889
|
for (const page of pages.flat()) {
|
|
35889
35890
|
page.index = this.pages.length;
|
|
@@ -36043,12 +36044,12 @@ var Site = class {
|
|
|
36043
36044
|
* with uncommitted changes are left out (they use their modification time). Not a
|
|
36044
36045
|
* repository, or no git: nothing, with a warning.
|
|
36045
36046
|
*/
|
|
36046
|
-
gitDates() {
|
|
36047
|
+
gitDates(setting) {
|
|
36047
36048
|
const { config, dirs } = this;
|
|
36048
36049
|
const git = (...args) => spawnSync("git", ["-C", dirs.root, "-c", "core.quotepath=off", ...args], { encoding: "utf8", maxBuffer: 1 << 30 });
|
|
36049
36050
|
const dates = /* @__PURE__ */ new Map();
|
|
36050
36051
|
const lost = (message) => {
|
|
36051
|
-
if (!config.quiet) warn(warning("last-modified",
|
|
36052
|
+
if (!config.quiet) warn(warning("last-modified", `${setting}: ${message}`));
|
|
36052
36053
|
};
|
|
36053
36054
|
const top = git("rev-parse", "--show-toplevel");
|
|
36054
36055
|
if (top.error) {
|
|
@@ -36198,22 +36199,9 @@ var Site = class {
|
|
|
36198
36199
|
own = merge(own, front, config.deepMerge);
|
|
36199
36200
|
if (this.keepLayers && frontKeys.length) layers.push(["front matter", front]);
|
|
36200
36201
|
const computedLayout = own.computed?.layout;
|
|
36201
|
-
if (computedLayout
|
|
36202
|
-
if (typeof computedLayout === "string" && !computedLayout.includes("{{") && !computedLayout.includes("{%") && !computedLayout.includes("<%")) own.layout = computedLayout;
|
|
36203
|
-
else bail("`layout` in computed isn't applied, because the layout is chosen before computed runs. Set `layout` in the front matter or a data file");
|
|
36204
|
-
}
|
|
36202
|
+
if (typeof computedLayout === "string" && !dependsOnPage(computedLayout)) own.layout = computedLayout;
|
|
36205
36203
|
if (isPlainObject(own.computed) && Object.hasOwn(own.computed, "page")) bail("`page` in computed isn't applied, because `page` is ssqch's: its url, inputPath, date and headings. Give the value another name (`computed: { meta: ... }`); front matter is at the top level already (`title`, not `page.title`)");
|
|
36206
|
-
const chain =
|
|
36207
|
-
const names = [];
|
|
36208
|
-
let next = typeof own.layout === "string" && own.layout !== "" ? own.layout : void 0;
|
|
36209
|
-
while (typeof next === "string") {
|
|
36210
|
-
const start = names.indexOf(next);
|
|
36211
|
-
if (start !== -1) bail(`${PASSED_THIS_TREE}. Layout loop: ${names.slice(start).join(" -> ")} -> ${next}`);
|
|
36212
|
-
const layout = this.loadLayout(next);
|
|
36213
|
-
names.push(next);
|
|
36214
|
-
chain.push(layout);
|
|
36215
|
-
next = layout.data.layout;
|
|
36216
|
-
}
|
|
36204
|
+
const chain = this.layoutChain(own.layout);
|
|
36217
36205
|
let data2 = this.global;
|
|
36218
36206
|
let layoutLayers = 0;
|
|
36219
36207
|
for (const layout of [...chain].reverse()) {
|
|
@@ -36245,12 +36233,28 @@ var Site = class {
|
|
|
36245
36233
|
filePathStem: parent === "" ? `/${stem}` : `/${parent}/${stem}`,
|
|
36246
36234
|
mtime,
|
|
36247
36235
|
fileDate,
|
|
36248
|
-
lastModified: config.lastModified === "git" ? commitDates.get(file) ?? mtime : config.lastModified === "file" ? mtime : void 0
|
|
36236
|
+
lastModified: config.lastModified === "git" ? commitDates.get(file) ?? mtime : config.lastModified === "file" ? mtime : void 0,
|
|
36237
|
+
commitDate: config.dateFallback === "git" ? commitDates.get(file) : void 0
|
|
36249
36238
|
};
|
|
36250
36239
|
} catch (e) {
|
|
36251
36240
|
throw context(e, `in ${rel}`);
|
|
36252
36241
|
}
|
|
36253
36242
|
}
|
|
36243
|
+
/** The layouts `layout` names, innermost first: that layout, the one its front matter names, and so on. `""`, `false` and `null` are none. */
|
|
36244
|
+
layoutChain(layout) {
|
|
36245
|
+
const chain = [];
|
|
36246
|
+
const names = [];
|
|
36247
|
+
let next = typeof layout === "string" && layout !== "" ? layout : void 0;
|
|
36248
|
+
while (typeof next === "string") {
|
|
36249
|
+
const start = names.indexOf(next);
|
|
36250
|
+
if (start !== -1) bail(`${PASSED_THIS_TREE}. Layout loop: ${names.slice(start).join(" -> ")} -> ${next}`);
|
|
36251
|
+
const found2 = this.loadLayout(next);
|
|
36252
|
+
names.push(next);
|
|
36253
|
+
chain.push(found2);
|
|
36254
|
+
next = found2.data.layout;
|
|
36255
|
+
}
|
|
36256
|
+
return chain;
|
|
36257
|
+
}
|
|
36254
36258
|
// ---- pagination, computed data and permalinks ----------------------------------------------
|
|
36255
36259
|
async expand(tpl, collections) {
|
|
36256
36260
|
try {
|
|
@@ -36266,6 +36270,7 @@ var Site = class {
|
|
|
36266
36270
|
let fromFileTime = false;
|
|
36267
36271
|
if (tpl.data.date !== void 0 && tpl.data.date !== null) date = toDate(tpl.data.date) ?? bail(`can't parse date ${show(tpl.data.date)}`);
|
|
36268
36272
|
else if (tpl.fileDate) date = tpl.fileDate;
|
|
36273
|
+
else if (tpl.commitDate) [date, fromFileTime] = [tpl.commitDate, true];
|
|
36269
36274
|
else if (sourceDateEpoch() !== void 0) date = new Date(sourceDateEpoch());
|
|
36270
36275
|
else [date, fromFileTime] = [tpl.mtime, true];
|
|
36271
36276
|
const basePage = (url, outputPath, when) => {
|
|
@@ -36310,6 +36315,15 @@ var Site = class {
|
|
|
36310
36315
|
}
|
|
36311
36316
|
}
|
|
36312
36317
|
}
|
|
36318
|
+
let layouts;
|
|
36319
|
+
if (isPlainObject(computed) && Object.hasOwn(computed, "layout") && !(typeof computed.layout === "string" && !dependsOnPage(computed.layout))) {
|
|
36320
|
+
const value = data2.layout;
|
|
36321
|
+
if (value !== void 0 && value !== null && value !== false && typeof value !== "string") bail(`computed.layout must be a layout's name, \`""\` or \`false\`, not ${show(value)}`);
|
|
36322
|
+
layouts = this.layoutChain(value);
|
|
36323
|
+
for (const layout of layouts) {
|
|
36324
|
+
for (const [key, v] of Object.entries(layout.data)) if (key !== "layout" && data2[key] === void 0) data2[key] = v;
|
|
36325
|
+
}
|
|
36326
|
+
}
|
|
36313
36327
|
let pageDate = date;
|
|
36314
36328
|
let fromFile = fromFileTime;
|
|
36315
36329
|
if (isPlainObject(computed) && computed.date !== void 0 && computed.date !== null && data2.date !== void 0 && data2.date !== null) {
|
|
@@ -36342,7 +36356,7 @@ var Site = class {
|
|
|
36342
36356
|
delete data2.collections;
|
|
36343
36357
|
const excluded = Boolean(data2.excludeFromCollections);
|
|
36344
36358
|
const inCollections = !excluded && !tpl.plainCopy && (index2 === 0 || Boolean(pagination?.addAllPagesToCollections));
|
|
36345
|
-
pages.push({ index: -1, tpl, data: data2, url, output, date: pageDate, when: fromFile ? UNDATED : BigInt(pageDate.getTime()) * 1000000n, inCollections });
|
|
36359
|
+
pages.push({ index: -1, tpl, data: data2, url, output, date: pageDate, when: fromFile ? UNDATED : BigInt(pageDate.getTime()) * 1000000n, inCollections, ...layouts ? { layouts } : {} });
|
|
36346
36360
|
}
|
|
36347
36361
|
if (pagination && pages.length) {
|
|
36348
36362
|
const hrefs = pages.map((p) => p.url ?? void 0);
|
|
@@ -36550,6 +36564,14 @@ function renderEngines(v) {
|
|
|
36550
36564
|
if (!names.length) bail("`render` is empty: name an engine (`md`), or use `render: false` to skip processing");
|
|
36551
36565
|
return names;
|
|
36552
36566
|
}
|
|
36567
|
+
var dependsOnPage = (value) => value.includes("{{") || value.includes("{%") || value.includes("<%");
|
|
36568
|
+
function readsCollections(computed) {
|
|
36569
|
+
if (typeof computed === "string") return computed.includes("collections");
|
|
36570
|
+
if (typeof computed === "function") return Function.prototype.toString.call(computed).includes("collections");
|
|
36571
|
+
if (Array.isArray(computed)) return computed.some(readsCollections);
|
|
36572
|
+
if (isPlainObject(computed)) return Object.values(computed).some(readsCollections);
|
|
36573
|
+
return false;
|
|
36574
|
+
}
|
|
36553
36575
|
function dataStringEngine(tpl) {
|
|
36554
36576
|
return tpl.engines.find((e) => e !== "md" && e !== "html" && e !== "txt") ?? "edge";
|
|
36555
36577
|
}
|
|
@@ -36678,7 +36700,7 @@ async function inspectPages(config) {
|
|
|
36678
36700
|
input: p.tpl.input,
|
|
36679
36701
|
output: p.output,
|
|
36680
36702
|
engines: p.tpl.engines,
|
|
36681
|
-
layouts: p.tpl.layouts.map((l) => l.name),
|
|
36703
|
+
layouts: (p.layouts ?? p.tpl.layouts).map((l) => l.name),
|
|
36682
36704
|
date: p.date,
|
|
36683
36705
|
dateFromName: p.tpl.fileDate !== void 0,
|
|
36684
36706
|
inCollections: p.inCollections,
|
|
@@ -36824,13 +36846,14 @@ var Renderer = class {
|
|
|
36824
36846
|
}
|
|
36825
36847
|
this.renderMs += performance.now() - start;
|
|
36826
36848
|
if (page.output === null) return;
|
|
36827
|
-
|
|
36849
|
+
const layouts = page.layouts ?? tpl.layouts;
|
|
36850
|
+
if (layouts.length) {
|
|
36828
36851
|
const data2 = this.data(page);
|
|
36829
36852
|
const had = this.bodies.get(page.index);
|
|
36830
36853
|
this.bodies.set(page.index, content);
|
|
36831
36854
|
try {
|
|
36832
36855
|
data2.page = site2.pageWithBody(page);
|
|
36833
|
-
for (const layout of
|
|
36856
|
+
for (const layout of layouts) {
|
|
36834
36857
|
data2.content = content;
|
|
36835
36858
|
let text4 = layout.body;
|
|
36836
36859
|
for (const name of layout.engines) {
|
|
@@ -37040,7 +37063,7 @@ function checkForeignGlobals(site2) {
|
|
|
37040
37063
|
const sources = [];
|
|
37041
37064
|
const seen = /* @__PURE__ */ new Set();
|
|
37042
37065
|
for (const tpl of site2.tpls) {
|
|
37043
|
-
sources.push([site2.display(tpl.input), tpl.body, tpl]);
|
|
37066
|
+
if (tpl.engines.some((e) => e !== "md" && e !== "html" && e !== "txt")) sources.push([site2.display(tpl.input), tpl.body, tpl]);
|
|
37044
37067
|
for (const layout of tpl.layouts) {
|
|
37045
37068
|
if (seen.has(layout.path)) continue;
|
|
37046
37069
|
seen.add(layout.path);
|
|
@@ -37310,7 +37333,9 @@ async function passthroughCopy(config, dirs, extra) {
|
|
|
37310
37333
|
}
|
|
37311
37334
|
}
|
|
37312
37335
|
sameDestinations(jobs, dirs);
|
|
37313
|
-
const
|
|
37336
|
+
const renamed = jobs.filter(([, to]) => config.renamedCopies.has(to)).map(([, to]) => config.renamedCopies.get(to));
|
|
37337
|
+
if (renamed.length) jobs.splice(0, jobs.length, ...jobs.filter(([, to]) => !config.renamedCopies.has(to)));
|
|
37338
|
+
const stats = { copied: 0, unchanged: 0, bytes: 0, paths: [...jobs.map(([, to]) => to), ...renamed] };
|
|
37314
37339
|
const folders = /* @__PURE__ */ new Map();
|
|
37315
37340
|
const failed = [];
|
|
37316
37341
|
let next = 0;
|
|
@@ -37406,4 +37431,4 @@ export {
|
|
|
37406
37431
|
runCommand,
|
|
37407
37432
|
OUTPUT_LIST
|
|
37408
37433
|
};
|
|
37409
|
-
/*! For license information please see chunk-
|
|
37434
|
+
/*! For license information please see chunk-SRNLKWXL.js.LEGAL.txt */
|
|
@@ -2,7 +2,7 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __ssqchCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
red
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BGCBSQ4A.js";
|
|
6
6
|
import {
|
|
7
7
|
joinAsGiven,
|
|
8
8
|
parentAsGiven,
|
|
@@ -20,8 +20,7 @@ import { fileURLToPath } from "node:url";
|
|
|
20
20
|
var PACKAGE = path.dirname(path.dirname(fileURLToPath(new URL("../src/bundled.ts", import.meta.url).href)));
|
|
21
21
|
var BUNDLED = path.join(PACKAGE, "bundled");
|
|
22
22
|
var FROM_REPOSITORY = [
|
|
23
|
-
["
|
|
24
|
-
["trailheads", "docs/trailheads"]
|
|
23
|
+
["docs", "site/src/docs"]
|
|
25
24
|
];
|
|
26
25
|
function bundledPath(rel) {
|
|
27
26
|
const inPackage = path.join(BUNDLED, rel);
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
} from "./chunk-3GYLOC6Y.js";
|
|
6
6
|
import {
|
|
7
7
|
findConfig
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-QMA7CK7B.js";
|
|
9
|
+
import "./chunk-LCPSKHAV.js";
|
|
10
10
|
import "./chunk-NKXEPHRZ.js";
|
|
11
11
|
import {
|
|
12
12
|
VERSION
|
|
13
13
|
} from "./chunk-AD3HAW3W.js";
|
|
14
14
|
import "./chunk-DDV6JEC2.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-5DNDSNTP.js";
|
|
16
16
|
import "./chunk-FVZ5JBRI.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-NFJJKDRI.js";
|
|
18
18
|
import "./chunk-UU43WIZG.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-JWCCVTTR.js";
|
|
20
20
|
import "./chunk-CMUWRPSQ.js";
|
|
21
21
|
import {
|
|
22
22
|
TABLE,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
readToml,
|
|
26
26
|
red,
|
|
27
27
|
tomlReason
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BGCBSQ4A.js";
|
|
29
29
|
import {
|
|
30
30
|
compareText,
|
|
31
31
|
isDir,
|
package/lib/cli.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __ssqchCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
BUILDER
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LAV3DEY4.js";
|
|
6
6
|
import {
|
|
7
7
|
Printed,
|
|
8
8
|
UsageError,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_ENGINE,
|
|
13
13
|
bundled
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Y2ESFAAD.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
17
|
} from "./chunk-AD3HAW3W.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-DDV6JEC2.js";
|
|
24
24
|
import {
|
|
25
25
|
describeThrown
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JWCCVTTR.js";
|
|
27
27
|
import {
|
|
28
28
|
prettyJson,
|
|
29
29
|
quoted
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
toJson2,
|
|
49
49
|
warn,
|
|
50
50
|
warning
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BGCBSQ4A.js";
|
|
52
52
|
import {
|
|
53
53
|
relative
|
|
54
54
|
} from "./chunk-VJWQSYEG.js";
|
|
@@ -318,23 +318,23 @@ async function main(argv) {
|
|
|
318
318
|
`);
|
|
319
319
|
return 1;
|
|
320
320
|
}
|
|
321
|
-
if (command === "import") return (await import("./chunk-
|
|
321
|
+
if (command === "import") return (await import("./chunk-ZM6TU2JB.js")).runImport(cli.positionals[0], cli.positionals[1] ?? ".", flag("write"));
|
|
322
322
|
switch (command) {
|
|
323
323
|
case "init":
|
|
324
|
-
return (await import("./chunk-
|
|
324
|
+
return (await import("./chunk-RJFWTW2Y.js")).runInit({ dir: cli.positionals[0] ?? ".", starter: value("starter") ?? "site", engine: value("engine") ?? DEFAULT_ENGINE, quiet: flag("quiet") });
|
|
325
325
|
case "capabilities":
|
|
326
|
-
return (await import("./chunk-
|
|
326
|
+
return (await import("./chunk-NUUEOGLZ.js")).runCapabilities(format, CAPABILITY_ORDER);
|
|
327
327
|
case "docs":
|
|
328
|
-
return (await import("./chunk-
|
|
328
|
+
return (await import("./chunk-3HHRKG33.js")).runDocs(GRAMMAR, { query: cli.positionals, from: value("from"), format });
|
|
329
329
|
case "sighting":
|
|
330
|
-
return (await import("./chunk-
|
|
330
|
+
return (await import("./chunk-RM5Q3KFB.js")).runSighting(path.resolve(value("root") ?? "."));
|
|
331
331
|
case "completions": {
|
|
332
332
|
process.stdout.write(bundled(`completions/${cli.positionals[0]}`));
|
|
333
333
|
return 0;
|
|
334
334
|
}
|
|
335
335
|
case "types": {
|
|
336
336
|
routeConsole();
|
|
337
|
-
return (await import("./chunk-
|
|
337
|
+
return (await import("./chunk-EEJDLCD3.js")).runTypes({ root: value("root"), out: value("out") ?? "ssqch.d.ts" });
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
const many = (name) => Array.isArray(cli.options[name]) ? cli.options[name] : typeof cli.options[name] === "string" ? [cli.options[name]] : [];
|
|
@@ -360,15 +360,15 @@ async function main(argv) {
|
|
|
360
360
|
const root = path.resolve(value("root") ?? ".");
|
|
361
361
|
siteRoot = root;
|
|
362
362
|
routeConsole();
|
|
363
|
-
const makeConfig = async () => (await import("./chunk-
|
|
363
|
+
const makeConfig = async () => (await import("./chunk-E5UB2YY7.js")).loadConfig({ root, rootGiven: value("root") ?? ".", env, serving, quiet: flag("quiet") || inspecting, verbose: flag("verbose"), output: value("output"), base: value("base") });
|
|
364
364
|
if (command === "new") return newPage(makeConfig, root, { path: cli.positionals[0], title: value("title"), date: value("date"), blueprint: value("blueprint"), set: cli.options.set ?? [], format });
|
|
365
365
|
if (serving) {
|
|
366
|
-
if (building) return (await import("./chunk-
|
|
366
|
+
if (building) return (await import("./chunk-Q4LFTYK2.js")).runBuilder(building, makeConfig, root);
|
|
367
367
|
const readyFile = value("ready-file") === void 0 ? void 0 : path.resolve(value("ready-file"));
|
|
368
368
|
const options = { port: Number(value("port") ?? "8080"), readyFile, quiet: flag("quiet") };
|
|
369
369
|
if (!flag("built")) {
|
|
370
370
|
try {
|
|
371
|
-
return await (await import("./chunk-
|
|
371
|
+
return await (await import("./chunk-SA5KSJ4Y.js")).serve(argv, options);
|
|
372
372
|
} catch (e) {
|
|
373
373
|
printError("error:", e, "build", new Locator(root));
|
|
374
374
|
return 1;
|
|
@@ -382,7 +382,7 @@ async function main(argv) {
|
|
|
382
382
|
return 1;
|
|
383
383
|
}
|
|
384
384
|
try {
|
|
385
|
-
return await (await import("./chunk-
|
|
385
|
+
return await (await import("./chunk-SA5KSJ4Y.js")).serveBuilt(config2, options);
|
|
386
386
|
} catch (e) {
|
|
387
387
|
printError("error:", e, "build", locatorOf(config2));
|
|
388
388
|
return 1;
|
|
@@ -411,7 +411,7 @@ async function main(argv) {
|
|
|
411
411
|
await runFootprint(shownDir(config, config.output), shownOutput(config), top, format);
|
|
412
412
|
return 0;
|
|
413
413
|
}
|
|
414
|
-
const [{ build }, { summary }] = await Promise.all([import("./chunk-
|
|
414
|
+
const [{ build }, { summary }] = await Promise.all([import("./chunk-DW7VMJEZ.js"), import("./chunk-HXCLCXRT.js")]);
|
|
415
415
|
const report = await build(config);
|
|
416
416
|
if (!config.quiet) process.stdout.write(summary(config, report));
|
|
417
417
|
return 0;
|
|
@@ -429,7 +429,7 @@ async function newPage(makeConfig, root, command) {
|
|
|
429
429
|
return 1;
|
|
430
430
|
}
|
|
431
431
|
try {
|
|
432
|
-
(await import("./chunk-
|
|
432
|
+
(await import("./chunk-RKFZSVNF.js")).runNew(config, command);
|
|
433
433
|
return 0;
|
|
434
434
|
} catch (e) {
|
|
435
435
|
printError("error:", e, "build", locatorOf(config));
|
|
@@ -441,7 +441,7 @@ var checkFormat = (format) => {
|
|
|
441
441
|
};
|
|
442
442
|
async function runInspect(config, target, name, format) {
|
|
443
443
|
checkFormat(format);
|
|
444
|
-
const { field, fieldText, inspect, inspectionJson, inspectionText } = await import("./chunk-
|
|
444
|
+
const { field, fieldText, inspect, inspectionJson, inspectionText } = await import("./chunk-DMVJ53SM.js");
|
|
445
445
|
let report;
|
|
446
446
|
try {
|
|
447
447
|
report = await inspect(config, target);
|
|
@@ -461,7 +461,7 @@ async function runDiff(dirs, options) {
|
|
|
461
461
|
const [before, after] = dirs;
|
|
462
462
|
try {
|
|
463
463
|
checkFormat(options.format);
|
|
464
|
-
const [{ rustRegExp }, { globProblem, globToRegExp }, { compare, compareRuns, diffJson, diffText, isSame, runsJson, runsText }] = await Promise.all([import("./chunk-IAFM5ITE.js"), import("./chunk-
|
|
464
|
+
const [{ rustRegExp }, { globProblem, globToRegExp }, { compare, compareRuns, diffJson, diffText, isSame, runsJson, runsText }] = await Promise.all([import("./chunk-IAFM5ITE.js"), import("./chunk-JXZT5L7W.js"), import("./chunk-HDQ4SRWM.js")]);
|
|
465
465
|
const ignore = options.ignore.map((pattern) => {
|
|
466
466
|
try {
|
|
467
467
|
return rustRegExp(pattern, "g");
|
|
@@ -493,7 +493,7 @@ async function runDiff(dirs, options) {
|
|
|
493
493
|
}
|
|
494
494
|
async function runFootprint(dir, shown, top, format) {
|
|
495
495
|
checkFormat(format);
|
|
496
|
-
const { footprintJson, footprintText, measure } = await import("./chunk-
|
|
496
|
+
const { footprintJson, footprintText, measure } = await import("./chunk-RVBNVGZV.js");
|
|
497
497
|
const measured = await measure(dir);
|
|
498
498
|
if (format === "json") process.stdout.write(JSON.stringify(footprintJson(measured, shown, top), null, 2) + "\n");
|
|
499
499
|
else process.stdout.write(footprintText(measured, shown, top));
|
|
@@ -517,7 +517,7 @@ async function buildJson(makeConfig, root, env) {
|
|
|
517
517
|
const dirs = dirsOf(config);
|
|
518
518
|
out.output = shownOutput(config);
|
|
519
519
|
try {
|
|
520
|
-
const report = await (await import("./chunk-
|
|
520
|
+
const report = await (await import("./chunk-DW7VMJEZ.js")).build(config);
|
|
521
521
|
out.durationMs = ms(report.durationMs);
|
|
522
522
|
out.pages = { written: report.pagesWritten, templates: report.templates, bytes: report.pageBytes, new: report.pagesNew ?? null, gone: report.pagesGone ?? null };
|
|
523
523
|
out.copied = { files: report.filesCopied, unchanged: report.filesUnchanged, bytes: report.passthroughBytes };
|
package/lib/elements.js
CHANGED
|
@@ -2,29 +2,29 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __ssqchCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
Options
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HGJ5VWUR.js";
|
|
6
6
|
import {
|
|
7
7
|
BUILTINS,
|
|
8
8
|
debugString,
|
|
9
9
|
rewriteHtml,
|
|
10
10
|
withBase
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QMA7CK7B.js";
|
|
12
|
+
import "./chunk-LCPSKHAV.js";
|
|
13
13
|
import {
|
|
14
14
|
count
|
|
15
15
|
} from "./chunk-NKXEPHRZ.js";
|
|
16
16
|
import "./chunk-AD3HAW3W.js";
|
|
17
17
|
import "./chunk-DDV6JEC2.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-5DNDSNTP.js";
|
|
19
19
|
import "./chunk-FVZ5JBRI.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-NFJJKDRI.js";
|
|
21
21
|
import "./chunk-UU43WIZG.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-JWCCVTTR.js";
|
|
23
23
|
import "./chunk-CMUWRPSQ.js";
|
|
24
24
|
import {
|
|
25
25
|
bail,
|
|
26
26
|
context
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BGCBSQ4A.js";
|
|
28
28
|
import {
|
|
29
29
|
compareText,
|
|
30
30
|
displayPath,
|
package/lib/image.js
CHANGED
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
image,
|
|
5
5
|
imagePlugin,
|
|
6
6
|
imageUrl
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-7HXCQEGA.js";
|
|
8
|
+
import "./chunk-HGJ5VWUR.js";
|
|
9
|
+
import "./chunk-QMA7CK7B.js";
|
|
10
|
+
import "./chunk-LCPSKHAV.js";
|
|
11
11
|
import "./chunk-NKXEPHRZ.js";
|
|
12
12
|
import "./chunk-AD3HAW3W.js";
|
|
13
13
|
import "./chunk-DDV6JEC2.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-5DNDSNTP.js";
|
|
15
15
|
import "./chunk-FVZ5JBRI.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-NFJJKDRI.js";
|
|
17
17
|
import "./chunk-UU43WIZG.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JWCCVTTR.js";
|
|
19
19
|
import "./chunk-CMUWRPSQ.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-BGCBSQ4A.js";
|
|
21
21
|
import "./chunk-VJWQSYEG.js";
|
|
22
22
|
import "./chunk-I3PS26CI.js";
|
|
23
23
|
export {
|
package/lib/links.js
CHANGED
|
@@ -2,12 +2,12 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __ssqchCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
Options
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HGJ5VWUR.js";
|
|
6
6
|
import {
|
|
7
7
|
BUILTINS,
|
|
8
8
|
rewriteHtml
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-QMA7CK7B.js";
|
|
10
|
+
import "./chunk-LCPSKHAV.js";
|
|
11
11
|
import {
|
|
12
12
|
count
|
|
13
13
|
} from "./chunk-NKXEPHRZ.js";
|
|
@@ -15,16 +15,16 @@ import "./chunk-AD3HAW3W.js";
|
|
|
15
15
|
import {
|
|
16
16
|
dirsOf
|
|
17
17
|
} from "./chunk-DDV6JEC2.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-5DNDSNTP.js";
|
|
19
19
|
import {
|
|
20
20
|
closest,
|
|
21
21
|
closestPathFinder
|
|
22
22
|
} from "./chunk-FVZ5JBRI.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-NFJJKDRI.js";
|
|
24
24
|
import {
|
|
25
25
|
TRAIL_GOES_COLD
|
|
26
26
|
} from "./chunk-UU43WIZG.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-JWCCVTTR.js";
|
|
28
28
|
import "./chunk-CMUWRPSQ.js";
|
|
29
29
|
import {
|
|
30
30
|
Diagnostics,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isCapturing,
|
|
34
34
|
warn,
|
|
35
35
|
warning
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BGCBSQ4A.js";
|
|
37
37
|
import {
|
|
38
38
|
compareText
|
|
39
39
|
} from "./chunk-VJWQSYEG.js";
|
|
@@ -296,7 +296,7 @@ function find(output, urlPath, written) {
|
|
|
296
296
|
const index = path.join(base, "index.html");
|
|
297
297
|
return there(index) ? index : void 0;
|
|
298
298
|
}
|
|
299
|
-
function redirectSources(output) {
|
|
299
|
+
function redirectSources(output, base) {
|
|
300
300
|
let text;
|
|
301
301
|
try {
|
|
302
302
|
text = fs.readFileSync(path.join(output, "_redirects"), "utf8");
|
|
@@ -308,7 +308,7 @@ function redirectSources(output) {
|
|
|
308
308
|
const l = trim(line);
|
|
309
309
|
if (l === "" || l.startsWith("#")) continue;
|
|
310
310
|
const from = firstWord(l);
|
|
311
|
-
if (from !== void 0 && from.startsWith("/")) sources.push(from);
|
|
311
|
+
if (from !== void 0 && from.startsWith("/")) sources.push(inSite(from, base) ?? from);
|
|
312
312
|
}
|
|
313
313
|
return sources;
|
|
314
314
|
}
|
|
@@ -360,7 +360,7 @@ async function check(config, output, written, options) {
|
|
|
360
360
|
const origin = (options.url === void 0 ? void 0 : originOf(options.url)) ?? sitemapOrigin(output);
|
|
361
361
|
const ids = new Map(scans.map(([file, scan]) => [file, scan.ids]));
|
|
362
362
|
const writtenFiles = new Set(written);
|
|
363
|
-
const redirects = redirectSources(output);
|
|
363
|
+
const redirects = redirectSources(output, config.base);
|
|
364
364
|
const anchors = options.anchors ?? true;
|
|
365
365
|
let checked = 0;
|
|
366
366
|
const seen = /* @__PURE__ */ new Set();
|
package/lib/minify.js
CHANGED
|
@@ -2,27 +2,27 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __ssqchCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
Options
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HGJ5VWUR.js";
|
|
6
6
|
import {
|
|
7
7
|
BUILTINS,
|
|
8
8
|
RustPlugin,
|
|
9
9
|
compilePlugin
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-QMA7CK7B.js";
|
|
11
|
+
import "./chunk-LCPSKHAV.js";
|
|
12
12
|
import "./chunk-NKXEPHRZ.js";
|
|
13
13
|
import "./chunk-AD3HAW3W.js";
|
|
14
14
|
import "./chunk-DDV6JEC2.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-5DNDSNTP.js";
|
|
16
16
|
import {
|
|
17
17
|
closest
|
|
18
18
|
} from "./chunk-FVZ5JBRI.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-NFJJKDRI.js";
|
|
20
20
|
import "./chunk-UU43WIZG.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-JWCCVTTR.js";
|
|
22
22
|
import "./chunk-CMUWRPSQ.js";
|
|
23
23
|
import {
|
|
24
24
|
BuildError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BGCBSQ4A.js";
|
|
26
26
|
import "./chunk-VJWQSYEG.js";
|
|
27
27
|
import "./chunk-I3PS26CI.js";
|
|
28
28
|
|
package/lib/redirects.js
CHANGED
|
@@ -2,27 +2,27 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __ssqchCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
Options
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HGJ5VWUR.js";
|
|
6
6
|
import {
|
|
7
7
|
BUILTINS,
|
|
8
8
|
debugString,
|
|
9
9
|
escapeHtml,
|
|
10
10
|
withBase
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QMA7CK7B.js";
|
|
12
|
+
import "./chunk-LCPSKHAV.js";
|
|
13
13
|
import "./chunk-NKXEPHRZ.js";
|
|
14
14
|
import "./chunk-AD3HAW3W.js";
|
|
15
15
|
import "./chunk-DDV6JEC2.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-5DNDSNTP.js";
|
|
17
17
|
import "./chunk-FVZ5JBRI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-NFJJKDRI.js";
|
|
19
19
|
import "./chunk-UU43WIZG.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-JWCCVTTR.js";
|
|
21
21
|
import "./chunk-CMUWRPSQ.js";
|
|
22
22
|
import {
|
|
23
23
|
bail,
|
|
24
24
|
context
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BGCBSQ4A.js";
|
|
26
26
|
import {
|
|
27
27
|
compareText,
|
|
28
28
|
displayPath,
|
|
@@ -140,7 +140,7 @@ BUILTINS.set("ssqch/redirects", (config, given) => {
|
|
|
140
140
|
const target = withBase(config2.base, to);
|
|
141
141
|
files.push({ path, contents: redirectPage(target), hook: { name: "redirect", value: { from, to: target } } });
|
|
142
142
|
}
|
|
143
|
-
lines += `${from} ${to} 301
|
|
143
|
+
lines += `${withBase(config2.base, from)} ${withBase(config2.base, to)} 301
|
|
144
144
|
`;
|
|
145
145
|
}
|
|
146
146
|
if (netlify && lines !== "") files.push({ path: "/_redirects", contents: lines, append: true });
|