@dpuse/dpuse-development 0.3.810 → 0.3.812
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 +15 -15
- package/dist/dpuse-development.es.js +159 -133
- package/dist/dpuse-development.es.js.map +1 -1
- package/package.json +1 -3
- package/vite.config.wasm.ts +0 -39
|
@@ -81,9 +81,6 @@ async function ve(e, t) {
|
|
|
81
81
|
else {
|
|
82
82
|
let n;
|
|
83
83
|
switch (e.typeId) {
|
|
84
|
-
case "connector":
|
|
85
|
-
n = ["vite.config.default.ts", "vite.config.wasm.ts"];
|
|
86
|
-
break;
|
|
87
84
|
case "presenter":
|
|
88
85
|
n = ["vite.config.presenter.ts"];
|
|
89
86
|
break;
|
|
@@ -283,34 +280,63 @@ async function Ie(e) {
|
|
|
283
280
|
async function Le(e, t, r) {
|
|
284
281
|
x(`${e} Insert licenses into 'README.md'`);
|
|
285
282
|
let [i, a] = await Promise.all([c("licenses/licenses.json"), c("licenses/licenseTree.json")]), o = /* @__PURE__ */ new Map();
|
|
286
|
-
for (let [e, t] of Object.entries(i)) o.set(e,
|
|
283
|
+
for (let [e, t] of Object.entries(i)) o.set(e, We(e, t));
|
|
287
284
|
await Promise.all(o.values().map(async (e) => {
|
|
288
|
-
let t = await
|
|
285
|
+
let t = await Ge(e.name, e.installedVersion);
|
|
289
286
|
e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
|
|
290
287
|
}));
|
|
291
|
-
let s = `${
|
|
292
|
-
for (let e of o.values()) s +=
|
|
288
|
+
let s = `${He(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
|
|
289
|
+
for (let e of o.values()) s += Ke(e);
|
|
293
290
|
let l = [];
|
|
294
|
-
a.dependencies != null &&
|
|
291
|
+
a.dependencies != null && qe(a.dependencies, o, r, l, 0);
|
|
295
292
|
let u = `${Pe}\n\n${l.join("\n")}`;
|
|
296
293
|
await n(`${M}\n\n${s.trimEnd()}\n\n### Dependency Tree\n\n${u}`, A, j);
|
|
297
294
|
}
|
|
298
295
|
async function Re() {
|
|
299
|
-
let e = await i("package-lock.json"), t = e === null ? {} : JSON.parse(e).packages ?? {}, n = /* @__PURE__ */ new Set(),
|
|
296
|
+
let e = await i("package-lock.json"), t = e === null ? {} : JSON.parse(e).packages ?? {}, n = ze(t), r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
300
297
|
for (let [e, i] of Object.entries(t)) {
|
|
301
298
|
if (e === "" || i.version === void 0) continue;
|
|
302
299
|
let t = `${i.name ?? e.slice(e.lastIndexOf("node_modules/") + 13)}@${i.version}`;
|
|
303
|
-
|
|
300
|
+
n.has(e) ? r.add(t) : a.add(t);
|
|
304
301
|
}
|
|
305
|
-
return
|
|
302
|
+
return a.values().filter((e) => !r.has(e)).toArray();
|
|
306
303
|
}
|
|
307
304
|
function ze(e) {
|
|
308
|
-
|
|
305
|
+
let t = /* @__PURE__ */ new Set(), n = [""];
|
|
306
|
+
for (; n.length > 0;) {
|
|
307
|
+
let r = n.pop() ?? "", i = e[r];
|
|
308
|
+
if (i !== void 0) for (let a of Be(i)) {
|
|
309
|
+
let i = Ve(e, r, a);
|
|
310
|
+
i === void 0 || t.has(i) || (t.add(i), n.push(i));
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return t;
|
|
309
314
|
}
|
|
310
315
|
function Be(e) {
|
|
316
|
+
let t = Object.keys(e.peerDependencies ?? {}).filter((t) => e.peerDependenciesMeta?.[t]?.optional !== !0);
|
|
317
|
+
return [
|
|
318
|
+
...Object.keys(e.dependencies ?? {}),
|
|
319
|
+
...Object.keys(e.optionalDependencies ?? {}),
|
|
320
|
+
...t
|
|
321
|
+
];
|
|
322
|
+
}
|
|
323
|
+
function Ve(e, t, n) {
|
|
324
|
+
let r = t;
|
|
325
|
+
for (;;) {
|
|
326
|
+
let t = r === "" ? `node_modules/${n}` : `${r}/node_modules/${n}`, i = e[t];
|
|
327
|
+
if (i !== void 0) return i.link === !0 && i.resolved !== void 0 ? i.resolved : t;
|
|
328
|
+
if (r === "") return;
|
|
329
|
+
let a = r.lastIndexOf("/node_modules/");
|
|
330
|
+
r = a === -1 ? "" : r.slice(0, a);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
function He(e) {
|
|
334
|
+
return `License data is updated each time \`npm run document\` is run, using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${Ue(e.split(";"))}, all of which allow commercial use. All are used unmodified, so any licence conditions that apply only to modified versions are not triggered. These checks cover the dependencies of the published library; developers cloning this repository should independently verify development dependencies.`;
|
|
335
|
+
}
|
|
336
|
+
function Ue(e) {
|
|
311
337
|
return e.length === 1 ? e[0] ?? "" : e.length === 2 ? `${String(e[0])} or ${String(e[1])}` : `${e.slice(0, -1).join(", ")}, or ${String(e.at(-1))}`;
|
|
312
338
|
}
|
|
313
|
-
function
|
|
339
|
+
function We(e, t) {
|
|
314
340
|
let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
|
|
315
341
|
return {
|
|
316
342
|
name: r,
|
|
@@ -324,7 +350,7 @@ function Ve(e, t) {
|
|
|
324
350
|
...t.licenseFile != null && { licenseFileLink: t.licenseFile }
|
|
325
351
|
};
|
|
326
352
|
}
|
|
327
|
-
async function
|
|
353
|
+
async function Ge(e, t) {
|
|
328
354
|
try {
|
|
329
355
|
let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
|
|
330
356
|
if (n.ok) {
|
|
@@ -342,27 +368,27 @@ async function He(e, t) {
|
|
|
342
368
|
publishedDate: ""
|
|
343
369
|
};
|
|
344
370
|
}
|
|
345
|
-
function
|
|
371
|
+
function Ke(e) {
|
|
346
372
|
let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
|
|
347
373
|
return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
|
|
348
374
|
}
|
|
349
|
-
function
|
|
375
|
+
function qe(e, t, n, r, i) {
|
|
350
376
|
let a = " ".repeat(i);
|
|
351
377
|
for (let [o, s] of Object.entries(e)) {
|
|
352
378
|
let e = s.version ?? "";
|
|
353
379
|
if (n.has(`${o}@${e}`)) continue;
|
|
354
|
-
let c = t.get(`${o}@${e}`), l = c == null ? o : `[${o}](${c.repository})`, u =
|
|
355
|
-
r.push(`${a}- **${l}** ${e}${u}`), s.dependencies != null &&
|
|
380
|
+
let c = t.get(`${o}@${e}`), l = c == null ? o : `[${o}](${c.repository})`, u = Je(c);
|
|
381
|
+
r.push(`${a}- **${l}** ${e}${u}`), s.dependencies != null && qe(s.dependencies, t, n, r, i + 1);
|
|
356
382
|
}
|
|
357
383
|
}
|
|
358
|
-
function
|
|
384
|
+
function Je(e) {
|
|
359
385
|
if (e == null) return "";
|
|
360
|
-
let t = e.publishedDate ?
|
|
386
|
+
let t = e.publishedDate ? Ye(e.publishedDate.split("T", 1)[0]) : "";
|
|
361
387
|
if (e.latestVersion === "" || e.latestVersion === e.installedVersion) return t === "" ? "" : ` — ${t}`;
|
|
362
|
-
let n = e.latestPublishedDate ?
|
|
388
|
+
let n = e.latestPublishedDate ? Ye(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
|
|
363
389
|
return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
|
|
364
390
|
}
|
|
365
|
-
function
|
|
391
|
+
function Ye(e) {
|
|
366
392
|
if (e == null || e === "") return "n/a";
|
|
367
393
|
let t = e.split("T", 1)[0];
|
|
368
394
|
if (t == null || t === "") return "n/a";
|
|
@@ -371,31 +397,31 @@ function Ke(e) {
|
|
|
371
397
|
}
|
|
372
398
|
//#endregion
|
|
373
399
|
//#region src/actions/documentOpening.ts
|
|
374
|
-
var
|
|
375
|
-
async function
|
|
400
|
+
var Xe = "<!-- OPENING_START -->", Ze = "<!-- OPENING_END -->";
|
|
401
|
+
async function Qe() {
|
|
376
402
|
try {
|
|
377
403
|
f("Document Opening"), x("1️⃣ Insert opening content into 'README.md'");
|
|
378
|
-
let e = await c("package.json"), r = await c("config.json"), { owner: i, repo: a } = t(e, "document opening"), s =
|
|
379
|
-
await n(u,
|
|
404
|
+
let e = await c("package.json"), r = await c("config.json"), { owner: i, repo: a } = t(e, "document opening"), s = $e(e), l = tt(r), u = nt(i, a, s, _(r.id).publishedTo === "npm" ? et(e) : void 0, e.description, l);
|
|
405
|
+
await n(u, Xe, Ze), o("Opening documented");
|
|
380
406
|
} catch (e) {
|
|
381
407
|
console.error("❌ Error documenting opening", e), process.exit(1);
|
|
382
408
|
}
|
|
383
409
|
}
|
|
384
|
-
function
|
|
410
|
+
function $e(e) {
|
|
385
411
|
let t = e.license;
|
|
386
412
|
if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
|
|
387
413
|
return t;
|
|
388
414
|
}
|
|
389
|
-
function
|
|
415
|
+
function et(e) {
|
|
390
416
|
let t = e.name;
|
|
391
417
|
if (t == null || t === "") throw Error("package.json 'name' field is required to document opening.");
|
|
392
418
|
return t;
|
|
393
419
|
}
|
|
394
|
-
function
|
|
420
|
+
function tt(e) {
|
|
395
421
|
let t = e.description.en?.trim();
|
|
396
422
|
return t === void 0 || t === "" ? void 0 : t;
|
|
397
423
|
}
|
|
398
|
-
function
|
|
424
|
+
function nt(e, t, n, r, i, a) {
|
|
399
425
|
let o = `https://github.com/${e}/${t}`;
|
|
400
426
|
return `[}-blue.svg)](./LICENSE)
|
|
401
427
|
[](${o}/releases/latest)${r === void 0 ? "" : `\n[](https://www.npmjs.com/package/${r})`}
|
|
@@ -417,31 +443,31 @@ In addition, DPUse provides [Tools](https://www.dpuse.app) used by the applicati
|
|
|
417
443
|
}
|
|
418
444
|
//#endregion
|
|
419
445
|
//#region src/actions/documentQualitySecurity.ts
|
|
420
|
-
var
|
|
446
|
+
var rt = {
|
|
421
447
|
"Branch-Protection": 3,
|
|
422
448
|
"Code-Review": 0,
|
|
423
449
|
Contributors: 0
|
|
424
|
-
},
|
|
450
|
+
}, it = /* @__PURE__ */ new Set(["CII-Best-Practices"]), at = "coverage/coverage-final.json", ot = "coverage/coverage-summary.json", N = 80, st = 60, P = "code-health-reports/vitest/badge.json", ct = {
|
|
425
451
|
actions: "GitHub Actions",
|
|
426
452
|
"javascript-typescript": "JavaScript/TypeScript",
|
|
427
453
|
rust: "Rust"
|
|
428
|
-
},
|
|
454
|
+
}, lt = {
|
|
429
455
|
A: "brightgreen",
|
|
430
456
|
B: "green",
|
|
431
457
|
C: "yellow",
|
|
432
458
|
D: "orange",
|
|
433
459
|
F: "red"
|
|
434
|
-
}, F = `${m}/health.json`,
|
|
435
|
-
async function
|
|
460
|
+
}, F = `${m}/health.json`, ut = ae(oe);
|
|
461
|
+
async function dt() {
|
|
436
462
|
try {
|
|
437
463
|
f("Document Quality & Security");
|
|
438
|
-
let e = await c("package.json"), r = await
|
|
464
|
+
let e = await c("package.json"), r = await ft(e), i = await mt(e, r === void 0 ? [] : ["--coverage", at]), { owner: a, repo: s } = t(e, "document quality and security");
|
|
439
465
|
x("4️⃣ Read security checks and settings");
|
|
440
|
-
let l = await
|
|
466
|
+
let l = await gt(a, s, e);
|
|
441
467
|
x("5️⃣ Look up OpenSSF Best Practices badge and Scorecard results");
|
|
442
|
-
let [u, d] = await Promise.all([
|
|
468
|
+
let [u, d] = await Promise.all([_t(`https://github.com/${a}/${s}`), vt(`github.com/${a}/${s}`)]);
|
|
443
469
|
x("6️⃣ Insert quality and security content into 'README.md'");
|
|
444
|
-
let p =
|
|
470
|
+
let p = xt(a, s, {
|
|
445
471
|
coveragePercent: r,
|
|
446
472
|
fallowHealth: i,
|
|
447
473
|
securitySettings: l
|
|
@@ -451,7 +477,7 @@ async function ct() {
|
|
|
451
477
|
console.error("❌ Error documenting quality and security", e), process.exit(1);
|
|
452
478
|
}
|
|
453
479
|
}
|
|
454
|
-
async function
|
|
480
|
+
async function ft(e) {
|
|
455
481
|
if (e.devDependencies?.["@vitest/coverage-v8"] == null) {
|
|
456
482
|
x("1️⃣ Test coverage NOT measured, as '@vitest/coverage-v8' is not installed");
|
|
457
483
|
return;
|
|
@@ -461,17 +487,17 @@ async function lt(e) {
|
|
|
461
487
|
"--passWithNoTests",
|
|
462
488
|
"--coverage"
|
|
463
489
|
]);
|
|
464
|
-
let t = await i(
|
|
490
|
+
let t = await i(ot);
|
|
465
491
|
if (t === null) return;
|
|
466
492
|
let n = JSON.parse(t).total.lines.pct;
|
|
467
|
-
return await
|
|
493
|
+
return await pt(n), n;
|
|
468
494
|
}
|
|
469
|
-
async function
|
|
495
|
+
async function pt(e) {
|
|
470
496
|
let t = [
|
|
471
497
|
"red",
|
|
472
498
|
"yellow",
|
|
473
499
|
"brightgreen"
|
|
474
|
-
], n = Number(e >=
|
|
500
|
+
], n = Number(e >= st) + Number(e >= N);
|
|
475
501
|
await r(P, {
|
|
476
502
|
schemaVersion: 1,
|
|
477
503
|
label: "coverage",
|
|
@@ -479,7 +505,7 @@ async function ut(e) {
|
|
|
479
505
|
color: t[n]
|
|
480
506
|
});
|
|
481
507
|
}
|
|
482
|
-
async function
|
|
508
|
+
async function mt(e, t) {
|
|
483
509
|
if (e.devDependencies?.fallow == null) {
|
|
484
510
|
x("2️⃣ Code health NOT measured, as Fallow is not installed"), x("3️⃣ Code health report NOT required");
|
|
485
511
|
return;
|
|
@@ -492,18 +518,18 @@ async function dt(e, t) {
|
|
|
492
518
|
...t
|
|
493
519
|
], F), await a("3️⃣ Write code health report", "fallow", ["--format", "markdown"], s, !0);
|
|
494
520
|
let n = await c(F);
|
|
495
|
-
return await
|
|
521
|
+
return await ht(n), n;
|
|
496
522
|
}
|
|
497
|
-
async function
|
|
523
|
+
async function ht(e) {
|
|
498
524
|
let { score: t, grade: n } = e.health_score;
|
|
499
525
|
await r(y, {
|
|
500
526
|
schemaVersion: 1,
|
|
501
527
|
label: "fallow",
|
|
502
528
|
message: `${n} (${String(Math.round(t))})`,
|
|
503
|
-
color:
|
|
529
|
+
color: lt[n] ?? "lightgrey"
|
|
504
530
|
});
|
|
505
531
|
}
|
|
506
|
-
async function
|
|
532
|
+
async function gt(e, t, n) {
|
|
507
533
|
let [r, a, o, s] = await Promise.all([
|
|
508
534
|
i(".github/workflows/ci.yml"),
|
|
509
535
|
i(".github/workflows/codeql.yml"),
|
|
@@ -516,7 +542,7 @@ async function pt(e, t, n) {
|
|
|
516
542
|
I(`repos/${e}/${t}/commits/main/check-runs?per_page=100`)
|
|
517
543
|
]), p = c === void 0 ? void 0 : JSON.parse(c).security_and_analysis, m = (e) => p?.[e] === void 0 ? void 0 : p[e].status === "enabled", h = new Set((f === void 0 ? [] : JSON.parse(f).check_runs).map((e) => e.app?.slug)), g = o?.match(/package-ecosystem:/g)?.length ?? 0, _ = o?.match(/open-pull-requests-limit: 0\b/g)?.length ?? 0;
|
|
518
544
|
return {
|
|
519
|
-
codeQLLanguages: (a ?? "").matchAll(/- language: ([\w-]+)/g).filter(([, e]) => e !== "rust" || s !== null).map(([, e = ""]) =>
|
|
545
|
+
codeQLLanguages: (a ?? "").matchAll(/- language: ([\w-]+)/g).filter(([, e]) => e !== "rust" || s !== null).map(([, e = ""]) => ct[e] ?? e).toArray(),
|
|
520
546
|
codeQLQueries: /queries: ([\w-]+)/.exec(a ?? "")?.[1],
|
|
521
547
|
dependabotAlerts: d !== void 0,
|
|
522
548
|
dependabotSecurityUpdates: m("dependabot_security_updates"),
|
|
@@ -535,27 +561,27 @@ async function pt(e, t, n) {
|
|
|
535
561
|
}
|
|
536
562
|
async function I(e) {
|
|
537
563
|
try {
|
|
538
|
-
let { stdout: t } = await
|
|
564
|
+
let { stdout: t } = await ut("gh", ["api", e]);
|
|
539
565
|
return t;
|
|
540
566
|
} catch (e) {
|
|
541
567
|
if (String(e.stderr).includes("HTTP 404")) return;
|
|
542
568
|
throw e;
|
|
543
569
|
}
|
|
544
570
|
}
|
|
545
|
-
async function
|
|
571
|
+
async function _t(e) {
|
|
546
572
|
let t = await fetch(`https://www.bestpractices.dev/projects.json?url=${encodeURIComponent(e)}`);
|
|
547
573
|
if (!t.ok) throw Error(`OpenSSF Best Practices lookup failed with status ${String(t.status)}.`);
|
|
548
574
|
return (await t.json()).find((t) => t.repo_url === e)?.id;
|
|
549
575
|
}
|
|
550
|
-
async function
|
|
576
|
+
async function vt(e) {
|
|
551
577
|
let t = await fetch(`https://api.scorecard.dev/projects/${e}`);
|
|
552
578
|
if (t.status !== 404) {
|
|
553
579
|
if (!t.ok) throw Error(`OpenSSF Scorecard lookup failed with status ${String(t.status)}.`);
|
|
554
580
|
return await t.json();
|
|
555
581
|
}
|
|
556
582
|
}
|
|
557
|
-
function
|
|
558
|
-
return e.checks.every(({ name: e, score: t }) => t === -1 || t === 10 ||
|
|
583
|
+
function yt(e) {
|
|
584
|
+
return e.checks.every(({ name: e, score: t }) => t === -1 || t === 10 || it.has(e) || rt[e] !== void 0 && t >= rt[e]);
|
|
559
585
|
}
|
|
560
586
|
function L(e) {
|
|
561
587
|
return e === !1 ? " These are handled manually." : "";
|
|
@@ -575,7 +601,7 @@ ${t.map((e) => `|${e.join("|")}|`).join("\n")}
|
|
|
575
601
|
function B(e, t, n, r) {
|
|
576
602
|
return `})`;
|
|
577
603
|
}
|
|
578
|
-
function
|
|
604
|
+
function bt(e, t, { coveragePercent: n, fallowHealth: r, securitySettings: i }) {
|
|
579
605
|
let a = `https://github.com/${e}/${t}`, o = (e) => e ? ` Part of the [CI workflow](${a}/actions/workflows/ci.yml) on every push and pull request to \`main\`.` : "", c = [[
|
|
580
606
|
"Unit tests",
|
|
581
607
|
R(i.testsInCI),
|
|
@@ -651,11 +677,11 @@ function _t(e, t, { coveragePercent: n, fallowHealth: r, securitySettings: i })
|
|
|
651
677
|
|
|
652
678
|
${z("Testing", c)}${z("Code Quality", u)}${z("Security Analysis", h)}${z("Dependencies", _)}`;
|
|
653
679
|
}
|
|
654
|
-
function
|
|
655
|
-
let a = `https://github.com/${e}/${t}`, o = `github.com/${e}/${t}`, s = `https://www.bestpractices.dev/projects/${String(r)}`, c = i !== void 0 &&
|
|
680
|
+
function xt(e, t, n, r, i) {
|
|
681
|
+
let a = `https://github.com/${e}/${t}`, o = `github.com/${e}/${t}`, s = `https://www.bestpractices.dev/projects/${String(r)}`, c = i !== void 0 && yt(i) ? "\n\n> [!NOTE]\n> Apart from the Best Practices badge above, the remaining Scorecard gaps need multi-person review or a pull-request workflow, which this solo-maintained project doesn't use." : "", l = r === void 0 ? "" : `[](${s})\n`, u = n.securitySettings.privateVulnerabilityReporting === !0 ? `Use [GitHub private vulnerability reporting](${a}/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.` : "See [SECURITY.md](./SECURITY.md) for how to report one privately, the full disclosure policy, and expected response times.";
|
|
656
682
|
return `## Quality & Security
|
|
657
683
|
|
|
658
|
-
${
|
|
684
|
+
${bt(e, t, n)}### OpenSSF 🚧
|
|
659
685
|
|
|
660
686
|
${l}[](https://scorecard.dev/viewer/?uri=${o})
|
|
661
687
|
|
|
@@ -667,26 +693,26 @@ Please do not open public GitHub issues for security vulnerabilities. ${u}`;
|
|
|
667
693
|
}
|
|
668
694
|
//#endregion
|
|
669
695
|
//#region src/actions/documentUsage.ts
|
|
670
|
-
var
|
|
696
|
+
var St = "<!-- USAGE_START -->", Ct = "<!-- USAGE_END -->", wt = /* @__PURE__ */ new Set([
|
|
671
697
|
"connector",
|
|
672
698
|
"cookbook",
|
|
673
699
|
"presenter"
|
|
674
|
-
]),
|
|
675
|
-
async function
|
|
700
|
+
]), Tt = /* @__PURE__ */ new Set(["development", "eslint"]), Et = "> [!WARNING]\n> This project is not designed for general use. It is custom built for the DPUse CI/CD process. You are welcome to clone and customise it for your own purposes, but you will need to adapt it to your own project structure and tooling.", Dt = "This repository manages itself using the actions it implements.", Ot = "This repository is managed using the common set of actions provided by [@dpuse/dpuse-development](https://github.com/dpuse/dpuse-development).";
|
|
701
|
+
async function kt() {
|
|
676
702
|
try {
|
|
677
703
|
f("Document Usage"), x("1️⃣ Insert usage content into 'README.md'");
|
|
678
|
-
let [e, t] = await Promise.all([c("package.json"), c("config.json")]), r =
|
|
679
|
-
await n(p,
|
|
704
|
+
let [e, t] = await Promise.all([c("package.json"), c("config.json")]), r = At(e), i = jt(r), a = V(e.engines?.node), s = V(e.engines?.npm), l = V(e.devDependencies?.typescript), u = Mt(_(t.id), e.name), d = `${r.replace(/\.git$/, "")}/blob/main/package.json`, p = Nt(u, r, i, a, s, l, `${e.name === "@dpuse/dpuse-development" ? Dt : Ot} See the \`scripts\` block in [package.json](${d}) for details.`);
|
|
705
|
+
await n(p, St, Ct), o("Usage documented");
|
|
680
706
|
} catch (e) {
|
|
681
707
|
console.error("❌ Error documenting usage", e), process.exit(1);
|
|
682
708
|
}
|
|
683
709
|
}
|
|
684
|
-
function
|
|
710
|
+
function At(e) {
|
|
685
711
|
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
686
712
|
if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
|
|
687
713
|
return n.replace(/^git\+/, "");
|
|
688
714
|
}
|
|
689
|
-
function
|
|
715
|
+
function jt(e) {
|
|
690
716
|
return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
|
|
691
717
|
}
|
|
692
718
|
function V(e) {
|
|
@@ -695,9 +721,9 @@ function V(e) {
|
|
|
695
721
|
if (t == null) throw Error(`Unable to parse version from '${e}'.`);
|
|
696
722
|
return t[0];
|
|
697
723
|
}
|
|
698
|
-
function
|
|
724
|
+
function Mt(e, t) {
|
|
699
725
|
let { typeId: n } = e;
|
|
700
|
-
if (
|
|
726
|
+
if (wt.has(n)) return `This ${n} is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
|
|
701
727
|
|
|
702
728
|
You may view or clone this repository for your own purposes, such as building a new, similar ${n}, though there is currently no process to accept third-party ${n}s into DPUse at this stage.`;
|
|
703
729
|
if (e.publishedTo === "npm") {
|
|
@@ -708,11 +734,11 @@ You may view or clone this repository for your own purposes, such as building a
|
|
|
708
734
|
npm install ${t}
|
|
709
735
|
\`\`\`
|
|
710
736
|
|
|
711
|
-
${
|
|
737
|
+
${Tt.has(n) ? `${Et}\n\n` : ""}To work on the source instead, clone this repository.`;
|
|
712
738
|
}
|
|
713
739
|
return "You may view or clone this repository for your own purposes.";
|
|
714
740
|
}
|
|
715
|
-
function
|
|
741
|
+
function Nt(e, t, n, r, i, a, o) {
|
|
716
742
|
return `## Usage
|
|
717
743
|
|
|
718
744
|
${e}
|
|
@@ -730,7 +756,7 @@ ${o}`;
|
|
|
730
756
|
//#endregion
|
|
731
757
|
//#region src/actions/documentApiReference.ts
|
|
732
758
|
var H = "API_REFERENCE.md";
|
|
733
|
-
async function
|
|
759
|
+
async function Pt() {
|
|
734
760
|
try {
|
|
735
761
|
f("Document API Reference");
|
|
736
762
|
let { writeAPIReference: e } = await import("./apiReference-Fj5_02JP.js");
|
|
@@ -741,90 +767,90 @@ async function jt() {
|
|
|
741
767
|
}
|
|
742
768
|
//#endregion
|
|
743
769
|
//#region src/actions/documentBundleSizes.ts
|
|
744
|
-
var U = "bundle-analysis-reports/sonda/index.json",
|
|
745
|
-
async function
|
|
770
|
+
var U = "bundle-analysis-reports/sonda/index.json", Ft = "<!-- BUNDLE_START -->", It = "<!-- BUNDLE_END -->", W = " ", G = 20, K = "█", q = "▒", Lt = 100 / G / 2, Rt = 100 / G, zt = "This report is updated with each release, from the bundle the release builds, using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.\n\n_Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS._", J = "Bars show each row's share of its output file.", Bt = "↳ rows are part of the row above.", Y = "(bundler output, whitespace & JSON)", Vt = `${Y} = bytes Sonda can't trace to a source file: whitespace (indentation and line breaks), code the bundler generates (region comments, the combined import/export lines, its small runtime helper and wrappers), and imported JSON such as \`config.json\`, which the bundler doesn't map. The JSON and the generated code are real bytes that ship; the whitespace mostly disappears once compressed.`;
|
|
771
|
+
async function Ht(e) {
|
|
746
772
|
try {
|
|
747
773
|
f("Document Bundle Sizes"), x("1️⃣ Read bundle analysis report");
|
|
748
774
|
let t = await c(U);
|
|
749
775
|
x("2️⃣ Insert table into 'README.md'");
|
|
750
|
-
let r =
|
|
751
|
-
await n(`## Bundle Analysis\n\n${
|
|
776
|
+
let r = Ut(t, e?.moduleLevel ?? !1), i = r.includes("↳") ? `${J} ${Bt}` : J;
|
|
777
|
+
await n(`## Bundle Analysis\n\n${zt}\n\n${r}\n\n${i}\n\n${Vt}`, Ft, It), o("Bundle sizes documented");
|
|
752
778
|
} catch (e) {
|
|
753
779
|
console.error("❌ Error documenting bundle sizes", e), process.exit(1);
|
|
754
780
|
}
|
|
755
781
|
}
|
|
756
|
-
function
|
|
757
|
-
let n =
|
|
782
|
+
function Ut(e, t) {
|
|
783
|
+
let n = Xt(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, Q(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
|
|
758
784
|
for (let [e, o] of i) {
|
|
759
|
-
let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted(
|
|
760
|
-
a.push(`| **${e}** | ${
|
|
785
|
+
let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted(Wt), s = i.reduce((e, [, t]) => e + t.sizes.uncompressed, 0), c = s > 0 && r > 0 ? ` · ${an(s, r)} of the build` : "";
|
|
786
|
+
a.push(`| **${e}** | ${en(o)}${c} |`, ...Gt(i, s, t));
|
|
761
787
|
}
|
|
762
788
|
return a.join("\n");
|
|
763
789
|
}
|
|
764
|
-
function
|
|
790
|
+
function Wt(e, t) {
|
|
765
791
|
return e[0] === Y == (t[0] === Y) ? t[1].sizes.uncompressed - e[1].sizes.uncompressed : e[0] === Y ? 1 : -1;
|
|
766
792
|
}
|
|
767
|
-
function
|
|
793
|
+
function Gt(e, t, n) {
|
|
768
794
|
let r = [];
|
|
769
795
|
for (let [i, { sizes: a, files: o }] of e) {
|
|
770
796
|
if (o.size === 1) {
|
|
771
|
-
let e =
|
|
772
|
-
r.push(`| ${W}${
|
|
797
|
+
let e = Yt(o);
|
|
798
|
+
r.push(`| ${W}${Jt(i, e)} | ${X(a.uncompressed, t)} |`);
|
|
773
799
|
continue;
|
|
774
800
|
}
|
|
775
|
-
r.push(`| ${W}${i} | ${X(a.uncompressed, t)} |`), n || r.push(...
|
|
801
|
+
r.push(`| ${W}${i} | ${X(a.uncompressed, t)} |`), n || r.push(...Kt(o, t));
|
|
776
802
|
}
|
|
777
803
|
return r;
|
|
778
804
|
}
|
|
779
|
-
function
|
|
780
|
-
let n = [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), r =
|
|
805
|
+
function Kt(e, t) {
|
|
806
|
+
let n = [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), r = qt(n, t), i = (r > 0 ? n.slice(0, -r) : n).map(([e, n]) => `| ${W}${W}↳ ${e} | ${X(n.uncompressed, t, q)} |`);
|
|
781
807
|
if (r > 0) {
|
|
782
808
|
let e = n.slice(-r).reduce((e, [, t]) => e + t.uncompressed, 0);
|
|
783
809
|
i.push(`| ${W}${W}↳ ${String(r)} smaller files | ${X(e, t, q)} |`);
|
|
784
810
|
}
|
|
785
811
|
return i;
|
|
786
812
|
}
|
|
787
|
-
function
|
|
813
|
+
function qt(e, t) {
|
|
788
814
|
if (t <= 0) return 0;
|
|
789
815
|
let n = 0, r = 0;
|
|
790
816
|
for (let [, i] of e.toReversed()) {
|
|
791
|
-
let e = i.uncompressed / t * 100 <
|
|
817
|
+
let e = i.uncompressed / t * 100 < Lt, a = (r + i.uncompressed) / t * 100 <= Rt;
|
|
792
818
|
if (!e || !a) break;
|
|
793
819
|
n++, r += i.uncompressed;
|
|
794
820
|
}
|
|
795
821
|
return n >= 2 ? n : 0;
|
|
796
822
|
}
|
|
797
823
|
function X(e, t, n = K) {
|
|
798
|
-
return `${
|
|
824
|
+
return `${tn(t > 0 ? e / t * 100 : 0, n)} · ${$(e)}`;
|
|
799
825
|
}
|
|
800
|
-
function
|
|
826
|
+
function Jt(e, t) {
|
|
801
827
|
return t === "" ? e : `${e} → ${t}`;
|
|
802
828
|
}
|
|
803
|
-
function
|
|
829
|
+
function Yt(e) {
|
|
804
830
|
let [t] = e.keys();
|
|
805
831
|
if (t === void 0) throw Error("Expected exactly one file");
|
|
806
832
|
return t;
|
|
807
833
|
}
|
|
808
|
-
function
|
|
809
|
-
let t =
|
|
834
|
+
function Xt(e) {
|
|
835
|
+
let t = Zt(e.dependencies), n = /* @__PURE__ */ new Map();
|
|
810
836
|
for (let r of e.resources) {
|
|
811
837
|
if (r.kind !== "chunk" || !r.parent) continue;
|
|
812
|
-
let { group: e, file: i } =
|
|
838
|
+
let { group: e, file: i } = Qt(r.name, t), a = Q(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
|
|
813
839
|
n.set(r.parent, o);
|
|
814
840
|
let s = o.get(e) ?? {
|
|
815
|
-
sizes:
|
|
841
|
+
sizes: nn(),
|
|
816
842
|
files: /* @__PURE__ */ new Map()
|
|
817
843
|
};
|
|
818
|
-
o.set(e, s),
|
|
819
|
-
let c = s.files.get(i) ??
|
|
820
|
-
s.files.set(i, c),
|
|
844
|
+
o.set(e, s), rn(s.sizes, a);
|
|
845
|
+
let c = s.files.get(i) ?? nn();
|
|
846
|
+
s.files.set(i, c), rn(c, a);
|
|
821
847
|
}
|
|
822
848
|
return n;
|
|
823
849
|
}
|
|
824
|
-
function
|
|
850
|
+
function Zt(e) {
|
|
825
851
|
return e.flatMap((e) => e.paths.map((t) => [t, e.name])).toSorted((e, t) => t[0].length - e[0].length);
|
|
826
852
|
}
|
|
827
|
-
function
|
|
853
|
+
function Qt(e, t) {
|
|
828
854
|
let n = t.find(([t]) => e === t || e.startsWith(`${t}/`));
|
|
829
855
|
if (n) {
|
|
830
856
|
let [t, r] = n;
|
|
@@ -841,13 +867,13 @@ function Yt(e, t) {
|
|
|
841
867
|
file: e.slice(1)
|
|
842
868
|
} : e.startsWith("rust/") ? {
|
|
843
869
|
group: "wasm",
|
|
844
|
-
file:
|
|
870
|
+
file: $t(e)
|
|
845
871
|
} : {
|
|
846
|
-
group:
|
|
872
|
+
group: "src",
|
|
847
873
|
file: Z(e)
|
|
848
874
|
};
|
|
849
875
|
}
|
|
850
|
-
function
|
|
876
|
+
function $t(e) {
|
|
851
877
|
let t = e.split("/", 2)[1] ?? "", n = Z(e);
|
|
852
878
|
return t !== "" && n.startsWith(t) ? `…${n.slice(t.length)}` : n;
|
|
853
879
|
}
|
|
@@ -860,23 +886,23 @@ function Q(e) {
|
|
|
860
886
|
gzip: e.gzip ?? 0
|
|
861
887
|
};
|
|
862
888
|
}
|
|
863
|
-
function
|
|
889
|
+
function en(e) {
|
|
864
890
|
return `${$(e.uncompressed)} · gzip ${$(e.gzip)}`;
|
|
865
891
|
}
|
|
866
|
-
function
|
|
892
|
+
function tn(e, t = K) {
|
|
867
893
|
let n = Math.round(e / 100 * G);
|
|
868
894
|
return `\`${t.repeat(n)}${"░".repeat(G - n)}\` ${e.toFixed(1)}%`;
|
|
869
895
|
}
|
|
870
|
-
function
|
|
896
|
+
function nn() {
|
|
871
897
|
return {
|
|
872
898
|
uncompressed: 0,
|
|
873
899
|
gzip: 0
|
|
874
900
|
};
|
|
875
901
|
}
|
|
876
|
-
function
|
|
902
|
+
function rn(e, t) {
|
|
877
903
|
e.uncompressed += t.uncompressed, e.gzip += t.gzip;
|
|
878
904
|
}
|
|
879
|
-
function
|
|
905
|
+
function an(e, t) {
|
|
880
906
|
return `${(e / t * 100).toFixed(1)}%`;
|
|
881
907
|
}
|
|
882
908
|
function $(e) {
|
|
@@ -884,12 +910,12 @@ function $(e) {
|
|
|
884
910
|
}
|
|
885
911
|
//#endregion
|
|
886
912
|
//#region src/actions/documentProject.ts
|
|
887
|
-
async function
|
|
913
|
+
async function on(e = "MIT", t = !1) {
|
|
888
914
|
try {
|
|
889
915
|
let n = await c("config.json"), r = _(n.id).typeId === "connector";
|
|
890
|
-
await
|
|
916
|
+
await Qe(), r && await ke(), await kt(), await Fe(e), await i("bundle-analysis-reports/sonda/index.json") === null ? x(`ℹ️ Bundle sizes NOT documented, as there is no '${U}' yet. Build the project first.`) : await Ht({ moduleLevel: t }), await dt(), await Ae();
|
|
891
917
|
let a = await i(H) !== null;
|
|
892
|
-
a ? await
|
|
918
|
+
a ? await Pt() : x(`ℹ️ '${H}' NOT required by this project`), await S("ℹ️ Format generated files", "prettier", [
|
|
893
919
|
"--write",
|
|
894
920
|
"README.md",
|
|
895
921
|
...a ? [H] : []
|
|
@@ -900,7 +926,7 @@ async function nn(e = "MIT", t = !1) {
|
|
|
900
926
|
}
|
|
901
927
|
//#endregion
|
|
902
928
|
//#region src/actions/formatCode.ts
|
|
903
|
-
async function
|
|
929
|
+
async function sn() {
|
|
904
930
|
try {
|
|
905
931
|
f("Format Code");
|
|
906
932
|
let e = [
|
|
@@ -921,7 +947,7 @@ async function rn() {
|
|
|
921
947
|
}
|
|
922
948
|
//#endregion
|
|
923
949
|
//#region src/actions/lintCode.ts
|
|
924
|
-
async function
|
|
950
|
+
async function cn() {
|
|
925
951
|
try {
|
|
926
952
|
f("Lint Code"), await S("1️⃣ Lint", "eslint", ["."]), o("Code linted");
|
|
927
953
|
} catch (e) {
|
|
@@ -930,7 +956,7 @@ async function an() {
|
|
|
930
956
|
}
|
|
931
957
|
//#endregion
|
|
932
958
|
//#region src/utilities/cloudflare.ts
|
|
933
|
-
async function
|
|
959
|
+
async function ln() {
|
|
934
960
|
let e = await c("config.json"), t = {
|
|
935
961
|
body: JSON.stringify(e),
|
|
936
962
|
headers: { "Content-Type": "application/json" },
|
|
@@ -938,7 +964,7 @@ async function on() {
|
|
|
938
964
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
939
965
|
if (!n.ok) throw Error(await n.text());
|
|
940
966
|
}
|
|
941
|
-
async function
|
|
967
|
+
async function un(e, t) {
|
|
942
968
|
async function n(e, t, r) {
|
|
943
969
|
for (let i of r) {
|
|
944
970
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
@@ -956,7 +982,7 @@ async function sn(e, t) {
|
|
|
956
982
|
let r = await v(`${e}/${t}/`);
|
|
957
983
|
await n(`${e}/${t}`, t, r);
|
|
958
984
|
}
|
|
959
|
-
async function
|
|
985
|
+
async function dn(e) {
|
|
960
986
|
let t = e.id, n = {
|
|
961
987
|
body: JSON.stringify(e),
|
|
962
988
|
headers: { "Content-Type": "application/json" },
|
|
@@ -964,7 +990,7 @@ async function cn(e) {
|
|
|
964
990
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
965
991
|
if (!r.ok) throw Error(await r.text());
|
|
966
992
|
}
|
|
967
|
-
async function
|
|
993
|
+
async function fn(e, t) {
|
|
968
994
|
let n = `v${e.version ?? "unknown"}`;
|
|
969
995
|
async function r(e, r = "") {
|
|
970
996
|
let i = await v(e, { withFileTypes: !0 });
|
|
@@ -988,34 +1014,34 @@ async function ln(e, t) {
|
|
|
988
1014
|
}
|
|
989
1015
|
//#endregion
|
|
990
1016
|
//#region src/actions/publishProject.ts
|
|
991
|
-
async function
|
|
1017
|
+
async function pn() {
|
|
992
1018
|
try {
|
|
993
1019
|
f("Publish Project");
|
|
994
1020
|
let e = await c("package.json"), t = await c("config.json"), n = _(t.id);
|
|
995
|
-
n.publishedTo === "npm" ? await S("1️⃣ Publish to npm", "npm", ["publish", "--provenance"]) : x("1️⃣ Publishing to npm NOT required"), await
|
|
1021
|
+
n.publishedTo === "npm" ? await S("1️⃣ Publish to npm", "npm", ["publish", "--provenance"]) : x("1️⃣ Publishing to npm NOT required"), await mn("2️⃣ ", e, t, n), o(`Project version '${e.version ?? "unknown"}' published.`);
|
|
996
1022
|
} catch (e) {
|
|
997
1023
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
998
1024
|
}
|
|
999
1025
|
}
|
|
1000
|
-
async function
|
|
1001
|
-
if (r.typeId === "app") x(`${e} Register module`), await
|
|
1002
|
-
else if (r.typeId === "engine") x(`${e} Register module`), await
|
|
1026
|
+
async function mn(e, t, n, r) {
|
|
1027
|
+
if (r.typeId === "app") x(`${e} Register module`), await ln();
|
|
1028
|
+
else if (r.typeId === "engine") x(`${e} Register module`), await fn(t, `dpuse-engine-eu/${r.uploadGroupName ?? "unknown"}`), await dn(n);
|
|
1003
1029
|
else if (r.uploadGroupName === void 0) x(`${e} Registration NOT required`);
|
|
1004
1030
|
else {
|
|
1005
1031
|
x(`${e} Register module`);
|
|
1006
1032
|
let i = n.id.split("-").slice(2).join("-");
|
|
1007
|
-
await
|
|
1033
|
+
await fn(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await dn(n);
|
|
1008
1034
|
}
|
|
1009
1035
|
}
|
|
1010
1036
|
//#endregion
|
|
1011
1037
|
//#region src/actions/releaseProject.ts
|
|
1012
|
-
async function
|
|
1038
|
+
async function hn(e = "MIT", t = !1) {
|
|
1013
1039
|
try {
|
|
1014
1040
|
f("Release Project");
|
|
1015
1041
|
let n = await c("package.json"), r = await c("config.json"), i = _(r.id);
|
|
1016
1042
|
await b("1️⃣ ", n);
|
|
1017
1043
|
let a = await g("2️⃣ ", n, i);
|
|
1018
|
-
if (await D("3️⃣ ", n), x("4️⃣ Regenerate README"), await
|
|
1044
|
+
if (await D("3️⃣ ", n), x("4️⃣ Regenerate README"), await on(e, t), await d("5️⃣ Stage changes", "git", ["add", "."]), await d("6️⃣ Commit changes", "git", [
|
|
1019
1045
|
"commit",
|
|
1020
1046
|
"-m",
|
|
1021
1047
|
`v${n.version ?? "unknown"}`
|
|
@@ -1023,7 +1049,7 @@ async function fn(e = "MIT", t = !1) {
|
|
|
1023
1049
|
"push",
|
|
1024
1050
|
"origin",
|
|
1025
1051
|
"main:main"
|
|
1026
|
-
]), await
|
|
1052
|
+
]), await mn("8️⃣ ", n, a, i), i.publishedTo === "npm") {
|
|
1027
1053
|
let e = `v${n.version ?? "unknown"}`;
|
|
1028
1054
|
await S("9️⃣ Create GitHub release", "gh", [
|
|
1029
1055
|
"release",
|
|
@@ -1042,7 +1068,7 @@ async function fn(e = "MIT", t = !1) {
|
|
|
1042
1068
|
}
|
|
1043
1069
|
//#endregion
|
|
1044
1070
|
//#region src/actions/syncProjectWithGitHub.ts
|
|
1045
|
-
async function
|
|
1071
|
+
async function gn() {
|
|
1046
1072
|
try {
|
|
1047
1073
|
f("Synchronise Project with GitHub");
|
|
1048
1074
|
let e = await c("package.json"), t = await c("config.json"), n = _(t.id);
|
|
@@ -1061,12 +1087,12 @@ async function pn() {
|
|
|
1061
1087
|
}
|
|
1062
1088
|
//#endregion
|
|
1063
1089
|
//#region src/actions/testProject.ts
|
|
1064
|
-
var
|
|
1090
|
+
var _n = [
|
|
1065
1091
|
"1️⃣ ",
|
|
1066
1092
|
"2️⃣ ",
|
|
1067
1093
|
"3️⃣ ",
|
|
1068
1094
|
"4️⃣ "
|
|
1069
|
-
],
|
|
1095
|
+
], vn = [{
|
|
1070
1096
|
id: "unit",
|
|
1071
1097
|
label: "Run unit tests",
|
|
1072
1098
|
command: "vitest",
|
|
@@ -1079,13 +1105,13 @@ var mn = [
|
|
|
1079
1105
|
arguments: ["test", "--pass-with-no-tests"],
|
|
1080
1106
|
configFileName: "playwright.config.ts"
|
|
1081
1107
|
}];
|
|
1082
|
-
async function
|
|
1108
|
+
async function yn(e = ["unit"]) {
|
|
1083
1109
|
try {
|
|
1084
1110
|
f("Test Project");
|
|
1085
1111
|
let t = 0;
|
|
1086
|
-
for (let n of
|
|
1112
|
+
for (let n of vn) {
|
|
1087
1113
|
if (!e.includes(n.id) || await i(n.configFileName) === null) continue;
|
|
1088
|
-
let r = `${
|
|
1114
|
+
let r = `${_n[t] ?? ""} ${n.label}`;
|
|
1089
1115
|
await S(r, n.command, n.arguments), t += 1;
|
|
1090
1116
|
}
|
|
1091
1117
|
if (t === 0) {
|
|
@@ -1098,4 +1124,4 @@ async function gn(e = ["unit"]) {
|
|
|
1098
1124
|
}
|
|
1099
1125
|
}
|
|
1100
1126
|
//#endregion
|
|
1101
|
-
export { ue as auditDependencies, de as buildProject, Ce as checkProject,
|
|
1127
|
+
export { ue as auditDependencies, de as buildProject, Ce as checkProject, on as documentProject, sn as formatCode, cn as lintCode, pn as publishProject, hn as releaseProject, gn as syncProjectWithGitHub, yn as testProject, un as uploadDirectoryToR2 };
|