ssqch 0.10.0 → 0.11.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/bundled/completions/bash +62 -16
- package/bundled/completions/elvish +28 -12
- package/bundled/completions/fish +36 -23
- package/bundled/completions/powershell +30 -12
- package/bundled/completions/zsh +40 -19
- package/bundled/docs/agents.md +12 -1
- package/bundled/docs/build-summary.md +31 -1
- package/bundled/docs/comparing-builds.md +37 -5
- package/bundled/docs/configuring.md +30 -5
- package/bundled/docs/field-guide.md +1 -1
- package/bundled/docs/github-pages.md +1 -1
- package/bundled/docs/index.md +1 -1
- package/bundled/docs/known-gaps.md +1 -1
- package/bundled/docs/markdown.md +63 -5
- package/bundled/docs/multilingual.md +20 -3
- package/bundled/docs/nav.yml +1 -0
- package/bundled/docs/netlify.md +2 -2
- package/bundled/docs/plugins.md +4 -4
- package/bundled/docs/seo.md +39 -1
- package/bundled/docs/template-languages.md +6 -4
- package/bundled/docs/templates.md +3 -3
- package/bundled/docs/trailheads/from-eleventy.md +25 -13
- package/bundled/docs/trailheads/from-hugo.md +103 -0
- package/bundled/docs/trailheads/from-jekyll.md +49 -15
- package/bundled/docs/trailheads/from-mkdocs.md +54 -9
- package/bundled/docs/trailheads/from-zola.md +2 -2
- package/bundled/docs/trailheads.md +22 -5
- package/bundled/docs/where-values-come-from.md +1 -1
- package/bundled/mkdocs/404.jinja +6 -0
- package/bundled/ssqch.d.ts +78 -18
- package/lib/assets.js +11 -12
- package/lib/{chunk-3HHRKG33.js → chunk-2L3HR67O.js} +71 -19
- package/lib/{chunk-LCPSKHAV.js → chunk-2QTJTEBV.js} +1 -1
- package/lib/{chunk-RVBNVGZV.js → chunk-3HZZY3Y7.js} +5 -6
- package/lib/{chunk-RKFZSVNF.js → chunk-3K237XAX.js} +10 -11
- package/lib/{chunk-HXCLCXRT.js → chunk-443ZQLVX.js} +5 -3
- package/lib/{chunk-Q4LFTYK2.js → chunk-5ELAUHRL.js} +20 -20
- package/lib/{chunk-SA5KSJ4Y.js → chunk-A75EVUJX.js} +10 -12
- package/lib/{chunk-BGCBSQ4A.js → chunk-AIMEXBTK.js} +163 -29
- package/lib/{chunk-Y2ESFAAD.js → chunk-B5E27PLU.js} +10 -41
- package/lib/{chunk-RJFWTW2Y.js → chunk-CMJ7X5WW.js} +3 -3
- package/lib/{chunk-NKXEPHRZ.js → chunk-ERAIEV3O.js} +106 -4
- package/lib/{chunk-E5UB2YY7.js → chunk-FCM3NYFR.js} +11 -9
- package/lib/{chunk-3EPHKJEG.js → chunk-GJNIQAIH.js} +8 -8
- package/lib/{chunk-CB6YFUXU.js → chunk-GLJQ4C76.js} +40 -21
- package/lib/{chunk-DDV6JEC2.js → chunk-GS5B3CBW.js} +1 -1
- package/lib/chunk-H5K2ZE7B.js +219 -0
- package/lib/{chunk-NFJJKDRI.js → chunk-HFSWUTXX.js} +1 -1
- package/lib/{chunk-4Q6WMTER.js → chunk-HWW5NCVJ.js} +1 -1
- package/lib/{chunk-LAV3DEY4.js → chunk-I3HYKEEW.js} +1 -1
- package/lib/{chunk-JWCCVTTR.js → chunk-IOBC665M.js} +2 -4
- package/lib/chunk-JC54PHIT.js +7992 -0
- package/lib/{chunk-2LEOPLTZ.js → chunk-KCF2Z6N7.js} +3 -5
- package/lib/{chunk-DMVJ53SM.js → chunk-KZZS4W2V.js} +15 -15
- package/lib/{chunk-RM5Q3KFB.js → chunk-LJOURBYT.js} +14 -13
- package/lib/chunk-OQGXZYZS.js +45 -0
- package/lib/chunk-OSBEH67S.js +6296 -0
- package/lib/{chunk-DW7VMJEZ.js → chunk-QJ5ZFTML.js} +14 -13
- package/lib/{chunk-NUUEOGLZ.js → chunk-QLUTNR37.js} +11 -11
- package/lib/{chunk-HGJ5VWUR.js → chunk-RBNPBTDP.js} +1 -1
- package/lib/{chunk-F65YUXZ7.js → chunk-RIAOXEXC.js} +10 -4
- package/lib/chunk-RVXGUMFI.js +21 -0
- package/lib/{chunk-N4O5MDIB.js → chunk-RYIWYWRQ.js} +5 -7
- package/lib/{chunk-EEJDLCD3.js → chunk-RZYAIX2R.js} +12 -11
- package/lib/{chunk-7HXCQEGA.js → chunk-V2FSMOFX.js} +3 -3
- package/lib/{chunk-HDQ4SRWM.js → chunk-X2GAVYV2.js} +525 -75
- package/lib/chunk-XS4EJSEK.js +279 -0
- package/lib/chunk-YCOTX2VM.js +37 -0
- package/lib/{chunk-QMA7CK7B.js → chunk-Z44IAMNG.js} +137 -32
- package/lib/chunk-Z5OP43HU.js +2945 -0
- package/lib/{chunk-JXZT5L7W.js → chunk-ZINLHOX4.js} +2 -3
- package/lib/{chunk-SRNLKWXL.js → chunk-ZR3JYLFB.js} +893 -12382
- package/lib/cli.js +82 -41
- package/lib/elements.js +11 -12
- package/lib/image.js +11 -11
- package/lib/links.js +11 -12
- package/lib/minify.js +71 -13
- package/lib/redirects.js +11 -12
- package/lib/rss.js +13 -11
- package/lib/sass.js +13 -245
- package/lib/sitemap.js +19 -18
- package/lib/ssqch.js +6 -5
- package/package.json +1 -1
- package/types/index.d.ts +59 -13
- package/types/minify.d.ts +15 -3
- package/types/sass.d.ts +2 -0
- package/types/sitemap.d.ts +2 -2
- package/wasm/markdown.wasm +0 -0
- package/wasm/minify.wasm +0 -0
- package/wasm/sass.wasm +0 -0
- package/lib/chunk-5DNDSNTP.js +0 -1541
- package/lib/chunk-VJWQSYEG.js +0 -119
- package/lib/chunk-ZM6TU2JB.js +0 -1287
- /package/lib/{chunk-BGCBSQ4A.js.LEGAL.txt → chunk-AIMEXBTK.js.LEGAL.txt} +0 -0
- /package/lib/{chunk-SRNLKWXL.js.LEGAL.txt → chunk-ZR3JYLFB.js.LEGAL.txt} +0 -0
package/lib/chunk-VJWQSYEG.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { createRequire as __ssqchCreateRequire } from "node:module";
|
|
2
|
-
const require = __ssqchCreateRequire(import.meta.url);
|
|
3
|
-
|
|
4
|
-
// src/paths.ts
|
|
5
|
-
import fs from "node:fs";
|
|
6
|
-
import path from "node:path";
|
|
7
|
-
var slashes = (p) => path.sep === "/" ? p : p.split(path.sep).join("/");
|
|
8
|
-
function displayPath(root, file) {
|
|
9
|
-
if (file === root) return "./";
|
|
10
|
-
return file.startsWith(root + path.sep) ? `./${slashes(file.slice(root.length + 1))}` : file;
|
|
11
|
-
}
|
|
12
|
-
var shown = (root, file) => displayPath(root, file).replace(/^\.\//, "");
|
|
13
|
-
var relative = (dir, file) => slashes(path.relative(dir, file));
|
|
14
|
-
var joinAsGiven = (base, rel) => path.isAbsolute(rel) || base === "" ? rel : /[\\/]$/.test(base) ? base + rel : base + path.sep + rel;
|
|
15
|
-
function parentAsGiven(p) {
|
|
16
|
-
const separators = path.sep === "/" ? "/" : "\\/";
|
|
17
|
-
let end = p.length;
|
|
18
|
-
while (end > 1 && separators.includes(p[end - 1])) end--;
|
|
19
|
-
let at = end - 1;
|
|
20
|
-
while (at >= 0 && !separators.includes(p[at])) at--;
|
|
21
|
-
if (at < 0) return "";
|
|
22
|
-
let parent = at;
|
|
23
|
-
while (parent > 0 && separators.includes(p[parent - 1])) parent--;
|
|
24
|
-
return parent === 0 ? p.slice(0, 1) : p.slice(0, parent);
|
|
25
|
-
}
|
|
26
|
-
var realPath = (p) => {
|
|
27
|
-
try {
|
|
28
|
-
return fs.realpathSync.native(p);
|
|
29
|
-
} catch {
|
|
30
|
-
return p;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
var isFile = (p) => fs.statSync(p, { throwIfNoEntry: false })?.isFile() ?? false;
|
|
34
|
-
var isDir = (p) => fs.statSync(p, { throwIfNoEntry: false })?.isDirectory() ?? false;
|
|
35
|
-
var isInside = (dir, file) => file === dir || file.startsWith(dir.endsWith(path.sep) ? dir : dir + path.sep);
|
|
36
|
-
function compareText(a, b) {
|
|
37
|
-
const n = Math.min(a.length, b.length);
|
|
38
|
-
for (let i = 0; i < n; i++) {
|
|
39
|
-
let x = a.charCodeAt(i), y = b.charCodeAt(i);
|
|
40
|
-
if (x === y) continue;
|
|
41
|
-
if (x >= 55296 && y >= 55296) {
|
|
42
|
-
x = x >= 57344 ? x - 2048 : x + 8192;
|
|
43
|
-
y = y >= 57344 ? y - 2048 : y + 8192;
|
|
44
|
-
}
|
|
45
|
-
return x - y;
|
|
46
|
-
}
|
|
47
|
-
return a.length - b.length;
|
|
48
|
-
}
|
|
49
|
-
function comparePaths(a, b) {
|
|
50
|
-
if (a === b) return 0;
|
|
51
|
-
const x = a.split(path.sep), y = b.split(path.sep);
|
|
52
|
-
const n = Math.min(x.length, y.length);
|
|
53
|
-
for (let i = 0; i < n; i++) {
|
|
54
|
-
if (x[i] === y[i]) continue;
|
|
55
|
-
return compareText(x[i], y[i]);
|
|
56
|
-
}
|
|
57
|
-
return x.length - y.length;
|
|
58
|
-
}
|
|
59
|
-
function walkFiles(dir) {
|
|
60
|
-
const out = [];
|
|
61
|
-
const walk = (d) => {
|
|
62
|
-
let entries;
|
|
63
|
-
try {
|
|
64
|
-
entries = fs.readdirSync(d, { withFileTypes: true });
|
|
65
|
-
} catch {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
for (const entry of entries) {
|
|
69
|
-
const p = path.join(d, entry.name);
|
|
70
|
-
if (entry.isDirectory()) walk(p);
|
|
71
|
-
else if (entry.isFile()) out.push(p);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
walk(dir);
|
|
75
|
-
return out;
|
|
76
|
-
}
|
|
77
|
-
function readFollowing(dir, above, onError) {
|
|
78
|
-
const out = [];
|
|
79
|
-
const here = above[above.length - 1] ?? realPath(dir);
|
|
80
|
-
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
81
|
-
const file = path.join(dir, entry.name);
|
|
82
|
-
if (!entry.isSymbolicLink()) {
|
|
83
|
-
out.push({ name: entry.name, path: file, isDirectory: entry.isDirectory(), isFile: entry.isFile(), real: path.join(here, entry.name) });
|
|
84
|
-
continue;
|
|
85
|
-
}
|
|
86
|
-
const stat = fs.statSync(file, { throwIfNoEntry: false });
|
|
87
|
-
if (!stat) {
|
|
88
|
-
onError({ path: file, broken: true });
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
const real = realPath(file);
|
|
92
|
-
if (stat.isDirectory()) {
|
|
93
|
-
const at = above.indexOf(real);
|
|
94
|
-
if (at !== -1) {
|
|
95
|
-
onError({ path: file, loop: above[at] });
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
out.push({ name: entry.name, path: file, isDirectory: stat.isDirectory(), isFile: stat.isFile(), real });
|
|
100
|
-
}
|
|
101
|
-
return out;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export {
|
|
105
|
-
slashes,
|
|
106
|
-
displayPath,
|
|
107
|
-
shown,
|
|
108
|
-
relative,
|
|
109
|
-
joinAsGiven,
|
|
110
|
-
parentAsGiven,
|
|
111
|
-
realPath,
|
|
112
|
-
isFile,
|
|
113
|
-
isDir,
|
|
114
|
-
isInside,
|
|
115
|
-
compareText,
|
|
116
|
-
comparePaths,
|
|
117
|
-
walkFiles,
|
|
118
|
-
readFollowing
|
|
119
|
-
};
|