@dpuse/dpuse-development 0.3.677 → 0.3.679
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 +4 -4
- package/dist/dpuse-development.es.js +98 -73
- package/dist/dpuse-development.es.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,19 +104,19 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
104
104
|
|
|
105
105
|
|Chunk/Module/File|Composition|
|
|
106
106
|
|:------ |:-----------|
|
|
107
|
-
| dist/dpuse-development.es.js |
|
|
108
|
-
| acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 41.
|
|
107
|
+
| dist/dpuse-development.es.js | 312.5 kB · brotli 63.1 kB |
|
|
108
|
+
| acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 41.8% |
|
|
109
109
|
| acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 36.7% |
|
|
110
|
-
| src | `██░░░░░░░░░░░░░░░░░░` 10.
|
|
110
|
+
| src | `██░░░░░░░░░░░░░░░░░░` 10.3% |
|
|
111
111
|
| documentDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
|
|
112
112
|
| manageProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
|
|
113
113
|
| index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.5% |
|
|
114
114
|
| documentBundleSizes.ts | `░░░░░░░░░░░░░░░░░░░░` 1.3% |
|
|
115
115
|
| checkConfigFiles.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
|
|
116
116
|
| documentGovernance.ts | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
117
|
+
| documentOpening.ts | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
117
118
|
| documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
118
119
|
| cloudflare.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
119
|
-
| documentOpening.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
120
120
|
| documentUsage.ts | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
121
121
|
| checkDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
122
122
|
| formatCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
@@ -6859,8 +6859,8 @@ var Bi = "<!-- OPENING_START -->", Vi = "<!-- OPENING_END -->";
|
|
|
6859
6859
|
async function Hi() {
|
|
6860
6860
|
try {
|
|
6861
6861
|
K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
|
|
6862
|
-
let e = await W("package.json"), { owner:
|
|
6863
|
-
await zn("README.md", Wn(await G("./README.md"),
|
|
6862
|
+
let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = Ui(e), i = Ji(n, r, Wi(e), Gi(t), Ki(t));
|
|
6863
|
+
await zn("README.md", Wn(await G("./README.md"), i, Bi, Vi)), q("Opening documented");
|
|
6864
6864
|
} catch (e) {
|
|
6865
6865
|
console.error("❌ Error documenting opening", e), process.exit(1);
|
|
6866
6866
|
}
|
|
@@ -6880,47 +6880,72 @@ function Wi(e) {
|
|
|
6880
6880
|
if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
|
|
6881
6881
|
return t;
|
|
6882
6882
|
}
|
|
6883
|
-
function Gi(e
|
|
6884
|
-
let
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6883
|
+
function Gi(e) {
|
|
6884
|
+
let t = e.description.en;
|
|
6885
|
+
if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
|
|
6886
|
+
return t.join("\n\n");
|
|
6887
|
+
}
|
|
6888
|
+
function Ki(e) {
|
|
6889
|
+
let { icon: t, iconDark: n } = e;
|
|
6890
|
+
if (t == null || n == null) throw Error("config.json 'icon' and 'iconDark' fields are required to document opening.");
|
|
6891
|
+
return {
|
|
6892
|
+
icon: t,
|
|
6893
|
+
iconDark: n
|
|
6894
|
+
};
|
|
6895
|
+
}
|
|
6896
|
+
function qi(e) {
|
|
6897
|
+
return `data:image/svg+xml;base64,${Buffer.from(e).toString("base64")}`;
|
|
6898
|
+
}
|
|
6899
|
+
function Ji(e, t, n, r, i) {
|
|
6900
|
+
let a = `https://github.com/${e}/${t}`, o = n.replace(/-/g, "--");
|
|
6901
|
+
return `<picture>
|
|
6902
|
+
<source media="(prefers-color-scheme: dark)" srcset="${qi(i.iconDark)}">
|
|
6903
|
+
<img src="${qi(i.icon)}" alt="${t} icon" width="48" height="48">
|
|
6904
|
+
</picture>
|
|
6905
|
+
|
|
6906
|
+
[](./LICENSE)
|
|
6907
|
+
[](${a}/releases/latest)
|
|
6908
|
+
[](${a}/actions/workflows/ci.yml)
|
|
6909
|
+
[](${a}/actions/workflows/codeql.yml)
|
|
6889
6910
|
[](https://sonarcloud.io/summary/new_code?id=${e}_${t})
|
|
6890
6911
|
|
|
6891
|
-
[Documentation](https://www.dpuse.app) · [Report a Vulnerability](${
|
|
6912
|
+
[Documentation](https://www.dpuse.app) · [Report a Vulnerability](${a}/security/advisories/new) · [Open an Issue](${a}/issues)
|
|
6892
6913
|
|
|
6893
6914
|
## About DPUse
|
|
6894
6915
|
|
|
6895
|
-
DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing. **Sourcing** uses a library of [Connectors](https://www.dpuse.app) to establish [Connections](https://www.dpuse.app) to applications, databases, file stores, and curated datasets; these connections are subsequently used to configure structured [Data Views](https://www.dpuse.app) from the underlying sources. **Contextualising** extracts chronological events from those [Data Views](https://www.dpuse.app) and maps them into comprehensive [Context Models](https://www.dpuse.app). This provides the DPUse Engine with the structural framework required to generate deterministic transactions, facts, or observations. **Publishing** employs a library of [Presenters](https://www.dpuse.app) to render standard [Presentations](https://www.dpuse.app) immediately using the contextualised data; additionally, [Cookbooks](https://www.dpuse.app) of [Recipes](https://www.dpuse.app) allow you to build Data Apps using your preferred tools
|
|
6916
|
+
DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing. **Sourcing** uses a library of [Connectors](https://www.dpuse.app) to establish [Connections](https://www.dpuse.app) to applications, databases, file stores, and curated datasets; these connections are subsequently used to configure structured [Data Views](https://www.dpuse.app) from the underlying sources. **Contextualising** extracts chronological events from those [Data Views](https://www.dpuse.app) and maps them into comprehensive [Context Models](https://www.dpuse.app). This provides the DPUse Engine with the structural framework required to generate deterministic transactions, facts, or observations. **Publishing** employs a library of [Presenters](https://www.dpuse.app) to render standard [Presentations](https://www.dpuse.app) immediately using the contextualised data; additionally, [Cookbooks](https://www.dpuse.app) of [Recipes](https://www.dpuse.app) allow you to build Data Apps using your preferred tools.
|
|
6917
|
+
|
|
6918
|
+
## Introduction
|
|
6919
|
+
|
|
6920
|
+
${r}`;
|
|
6896
6921
|
}
|
|
6897
6922
|
//#endregion
|
|
6898
6923
|
//#region src/actions/documentUsage.ts
|
|
6899
|
-
var
|
|
6900
|
-
async function
|
|
6924
|
+
var Yi = "<!-- USAGE_START -->", Xi = "<!-- USAGE_END -->";
|
|
6925
|
+
async function Zi() {
|
|
6901
6926
|
try {
|
|
6902
6927
|
K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
|
|
6903
|
-
let e = await W("package.json"), t =
|
|
6904
|
-
await zn("README.md", Wn(await G("./README.md"), n,
|
|
6928
|
+
let e = await W("package.json"), t = Qi(e), n = ta(t, $i(t), ea(e.engines?.node), ea(e.engines?.npm), ea(e.devDependencies?.typescript));
|
|
6929
|
+
await zn("README.md", Wn(await G("./README.md"), n, Yi, Xi)), q("Usage documented");
|
|
6905
6930
|
} catch (e) {
|
|
6906
6931
|
console.error("❌ Error documenting usage", e), process.exit(1);
|
|
6907
6932
|
}
|
|
6908
6933
|
}
|
|
6909
|
-
function
|
|
6934
|
+
function Qi(e) {
|
|
6910
6935
|
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
6911
6936
|
if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
|
|
6912
6937
|
return n.replace(/^git\+/, "");
|
|
6913
6938
|
}
|
|
6914
|
-
function
|
|
6939
|
+
function $i(e) {
|
|
6915
6940
|
return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
|
|
6916
6941
|
}
|
|
6917
|
-
function
|
|
6942
|
+
function ea(e) {
|
|
6918
6943
|
if (e == null) throw Error("package.json version range is required to document usage.");
|
|
6919
6944
|
let t = /\d+/.exec(e);
|
|
6920
6945
|
if (t == null) throw Error(`Unable to parse major version from '${e}'.`);
|
|
6921
6946
|
return t[0];
|
|
6922
6947
|
}
|
|
6923
|
-
function
|
|
6948
|
+
function ta(e, t, n, r, i) {
|
|
6924
6949
|
return `This connector 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.
|
|
6925
6950
|
|
|
6926
6951
|
You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
|
|
@@ -6935,7 +6960,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
|
|
|
6935
6960
|
}
|
|
6936
6961
|
//#endregion
|
|
6937
6962
|
//#region src/actions/formatCode.ts
|
|
6938
|
-
async function
|
|
6963
|
+
async function na() {
|
|
6939
6964
|
try {
|
|
6940
6965
|
K("Format Code"), await Fn("1️⃣ Format", "prettier", [
|
|
6941
6966
|
"--write",
|
|
@@ -6950,7 +6975,7 @@ async function $i() {
|
|
|
6950
6975
|
}
|
|
6951
6976
|
//#endregion
|
|
6952
6977
|
//#region src/actions/lintCode.ts
|
|
6953
|
-
async function
|
|
6978
|
+
async function ra() {
|
|
6954
6979
|
try {
|
|
6955
6980
|
K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
|
|
6956
6981
|
} catch (e) {
|
|
@@ -6959,7 +6984,7 @@ async function ea() {
|
|
|
6959
6984
|
}
|
|
6960
6985
|
//#endregion
|
|
6961
6986
|
//#region src/utilities/cloudflare.ts
|
|
6962
|
-
async function
|
|
6987
|
+
async function ia() {
|
|
6963
6988
|
let e = await W("config.json"), t = {
|
|
6964
6989
|
body: JSON.stringify(e),
|
|
6965
6990
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6967,7 +6992,7 @@ async function ta() {
|
|
|
6967
6992
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6968
6993
|
if (!n.ok) throw Error(await n.text());
|
|
6969
6994
|
}
|
|
6970
|
-
async function
|
|
6995
|
+
async function aa(e, t) {
|
|
6971
6996
|
async function n(e, t, r) {
|
|
6972
6997
|
for (let i of r) {
|
|
6973
6998
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
@@ -6985,7 +7010,7 @@ async function na(e, t) {
|
|
|
6985
7010
|
let r = await Nn(`${e}/${t}/`);
|
|
6986
7011
|
await n(`${e}/${t}`, t, r);
|
|
6987
7012
|
}
|
|
6988
|
-
async function
|
|
7013
|
+
async function oa(e) {
|
|
6989
7014
|
let t = e.id, n = {
|
|
6990
7015
|
body: JSON.stringify(e),
|
|
6991
7016
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6993,7 +7018,7 @@ async function ra(e) {
|
|
|
6993
7018
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
6994
7019
|
if (!r.ok) throw Error(await r.text());
|
|
6995
7020
|
}
|
|
6996
|
-
async function
|
|
7021
|
+
async function sa(e, t) {
|
|
6997
7022
|
let n = `v${e.version ?? "unknown"}`;
|
|
6998
7023
|
async function r(e, r = "") {
|
|
6999
7024
|
let i = await Nn(e, { withFileTypes: !0 });
|
|
@@ -7017,24 +7042,24 @@ async function ia(e, t) {
|
|
|
7017
7042
|
}
|
|
7018
7043
|
//#endregion
|
|
7019
7044
|
//#region node_modules/valibot/dist/index.mjs
|
|
7020
|
-
var
|
|
7045
|
+
var ca, la = {
|
|
7021
7046
|
lang: void 0,
|
|
7022
7047
|
message: void 0,
|
|
7023
7048
|
abortEarly: void 0,
|
|
7024
7049
|
abortPipeEarly: void 0
|
|
7025
7050
|
};
|
|
7026
7051
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7027
|
-
function
|
|
7028
|
-
return !e && !
|
|
7029
|
-
lang: e?.lang ??
|
|
7052
|
+
function ua(e) {
|
|
7053
|
+
return !e && !ca ? la : {
|
|
7054
|
+
lang: e?.lang ?? ca?.lang,
|
|
7030
7055
|
message: e?.message,
|
|
7031
|
-
abortEarly: e?.abortEarly ??
|
|
7032
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
7056
|
+
abortEarly: e?.abortEarly ?? ca?.abortEarly,
|
|
7057
|
+
abortPipeEarly: e?.abortPipeEarly ?? ca?.abortPipeEarly
|
|
7033
7058
|
};
|
|
7034
7059
|
}
|
|
7035
7060
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7036
|
-
function
|
|
7037
|
-
let r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
7061
|
+
function da(e, t, n) {
|
|
7062
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ ua(n));
|
|
7038
7063
|
return {
|
|
7039
7064
|
typed: r.typed,
|
|
7040
7065
|
success: !r.issues,
|
|
@@ -7044,69 +7069,69 @@ function ca(e, t, n) {
|
|
|
7044
7069
|
}
|
|
7045
7070
|
//#endregion
|
|
7046
7071
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
|
|
7047
|
-
var
|
|
7072
|
+
var fa = /* @__PURE__ */ Q({
|
|
7048
7073
|
typeId: /* @__PURE__ */ ci("contextArea"),
|
|
7049
7074
|
...Si,
|
|
7050
7075
|
modelRefs: /* @__PURE__ */ oi(xi),
|
|
7051
7076
|
order: /* @__PURE__ */ li()
|
|
7052
|
-
}),
|
|
7077
|
+
}), pa = mi(["listContextFocuses"]), ma = /* @__PURE__ */ Q({
|
|
7053
7078
|
typeId: /* @__PURE__ */ ci("context"),
|
|
7054
7079
|
...Ci,
|
|
7055
|
-
actionNames: /* @__PURE__ */ oi(
|
|
7056
|
-
models: /* @__PURE__ */ oi(
|
|
7057
|
-
}),
|
|
7080
|
+
actionNames: /* @__PURE__ */ oi(pa),
|
|
7081
|
+
models: /* @__PURE__ */ oi(fa)
|
|
7082
|
+
}), ha = mi([
|
|
7058
7083
|
"list",
|
|
7059
7084
|
"render",
|
|
7060
7085
|
"setColorMode"
|
|
7061
|
-
]),
|
|
7086
|
+
]), ga = /* @__PURE__ */ Q({
|
|
7062
7087
|
typeId: /* @__PURE__ */ ci("presenter"),
|
|
7063
7088
|
...Ci,
|
|
7064
|
-
actionNames: /* @__PURE__ */ oi(
|
|
7089
|
+
actionNames: /* @__PURE__ */ oi(ha),
|
|
7065
7090
|
presentations: /* @__PURE__ */ oi(xi)
|
|
7066
7091
|
});
|
|
7067
7092
|
//#endregion
|
|
7068
7093
|
//#region src/actions/manageProject.ts
|
|
7069
|
-
async function
|
|
7094
|
+
async function _a() {
|
|
7070
7095
|
try {
|
|
7071
7096
|
K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
|
|
7072
7097
|
} catch (e) {
|
|
7073
7098
|
console.error("❌ Error building project", e), process.exit(1);
|
|
7074
7099
|
}
|
|
7075
7100
|
}
|
|
7076
|
-
async function
|
|
7101
|
+
async function va() {
|
|
7077
7102
|
try {
|
|
7078
7103
|
K("Publish Project");
|
|
7079
7104
|
let e = await W("package.json"), t = await W("config.json"), n = Bn(t.id);
|
|
7080
|
-
if (n.typeId === "app") J("1️⃣ Register module"), await
|
|
7081
|
-
else if (n.typeId === "engine") J("1️⃣ Register module"), await
|
|
7105
|
+
if (n.typeId === "app") J("1️⃣ Register module"), await ia();
|
|
7106
|
+
else if (n.typeId === "engine") J("1️⃣ Register module"), await sa(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await oa(t);
|
|
7082
7107
|
else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
|
|
7083
7108
|
else {
|
|
7084
7109
|
J("1️⃣ Register module");
|
|
7085
7110
|
let r = t.id.split("-").slice(2).join("-");
|
|
7086
|
-
await
|
|
7111
|
+
await sa(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await oa(t);
|
|
7087
7112
|
}
|
|
7088
7113
|
q(`Project version '${e.version ?? "unknown"}' published.`);
|
|
7089
7114
|
} catch (e) {
|
|
7090
7115
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
7091
7116
|
}
|
|
7092
7117
|
}
|
|
7093
|
-
async function
|
|
7118
|
+
async function ya() {
|
|
7094
7119
|
try {
|
|
7095
7120
|
K("Release Project");
|
|
7096
7121
|
let e = await W("package.json"), t = await W("config.json");
|
|
7097
|
-
await
|
|
7122
|
+
await Da("1️⃣ ", e);
|
|
7098
7123
|
let n = Bn(t.id);
|
|
7099
7124
|
switch (n.typeId) {
|
|
7100
7125
|
case "connector":
|
|
7101
|
-
t = await
|
|
7126
|
+
t = await xa("2️⃣ ", e);
|
|
7102
7127
|
break;
|
|
7103
7128
|
case "context":
|
|
7104
|
-
t = await
|
|
7129
|
+
t = await Sa("2️⃣ ", e);
|
|
7105
7130
|
break;
|
|
7106
7131
|
case "presenter":
|
|
7107
|
-
t = await
|
|
7132
|
+
t = await Ca("2️⃣ ", e);
|
|
7108
7133
|
break;
|
|
7109
|
-
default: t = await
|
|
7134
|
+
default: t = await ba("2️⃣ ", e);
|
|
7110
7135
|
}
|
|
7111
7136
|
if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
|
|
7112
7137
|
"commit",
|
|
@@ -7116,13 +7141,13 @@ async function ga() {
|
|
|
7116
7141
|
"push",
|
|
7117
7142
|
"origin",
|
|
7118
7143
|
"main:main"
|
|
7119
|
-
]), n.typeId === "app") J("7️⃣ Register module"), await
|
|
7120
|
-
else if (n.typeId === "engine") J("7️⃣ Register module"), await
|
|
7144
|
+
]), n.typeId === "app") J("7️⃣ Register module"), await ia();
|
|
7145
|
+
else if (n.typeId === "engine") J("7️⃣ Register module"), await sa(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await oa(t);
|
|
7121
7146
|
else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
|
|
7122
7147
|
else {
|
|
7123
7148
|
J("7️⃣ Register module");
|
|
7124
7149
|
let r = t.id.split("-").slice(2).join("-");
|
|
7125
|
-
await
|
|
7150
|
+
await sa(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await oa(t);
|
|
7126
7151
|
}
|
|
7127
7152
|
if (n.publishedTo === "npm") {
|
|
7128
7153
|
let e = ".npmrc";
|
|
@@ -7141,48 +7166,48 @@ async function ga() {
|
|
|
7141
7166
|
console.error("❌ Error releasing project", e), process.exit(1);
|
|
7142
7167
|
}
|
|
7143
7168
|
}
|
|
7144
|
-
async function
|
|
7169
|
+
async function ba(e, t) {
|
|
7145
7170
|
J(`${e} Build project configuration`);
|
|
7146
7171
|
let n = await W("config.json");
|
|
7147
7172
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
|
|
7148
7173
|
}
|
|
7149
|
-
async function
|
|
7174
|
+
async function xa(e, t) {
|
|
7150
7175
|
J(`${e} Build connector project configuration`);
|
|
7151
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7176
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ da(Oi, n);
|
|
7152
7177
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7153
7178
|
let a = Hn(r);
|
|
7154
|
-
return await
|
|
7179
|
+
return await wa(t, n, a, Mi(a));
|
|
7155
7180
|
}
|
|
7156
|
-
async function
|
|
7181
|
+
async function Sa(e, t) {
|
|
7157
7182
|
J(`${e} Build context project configuration`);
|
|
7158
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7183
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ da(ma, n);
|
|
7159
7184
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7160
|
-
return await
|
|
7185
|
+
return await wa(t, n, Hn(r));
|
|
7161
7186
|
}
|
|
7162
|
-
async function
|
|
7187
|
+
async function Ca(e, t) {
|
|
7163
7188
|
J(`${e} Build presenter project configuration`);
|
|
7164
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7189
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ da(ga, n);
|
|
7165
7190
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7166
|
-
return await
|
|
7191
|
+
return await wa(t, n, Hn(r));
|
|
7167
7192
|
}
|
|
7168
|
-
async function
|
|
7193
|
+
async function wa(e, t, n, r) {
|
|
7169
7194
|
return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, await Rn("config.json", t), t;
|
|
7170
7195
|
}
|
|
7171
|
-
async function
|
|
7196
|
+
async function Ta() {
|
|
7172
7197
|
try {
|
|
7173
7198
|
K("Synchronise Project with GitHub");
|
|
7174
7199
|
let e = await W("package.json"), t = await W("config.json");
|
|
7175
|
-
switch (await
|
|
7200
|
+
switch (await Da("1️⃣ ", e), Bn(t.id).typeId) {
|
|
7176
7201
|
case "connector":
|
|
7177
|
-
await
|
|
7202
|
+
await xa("2️⃣ ", e);
|
|
7178
7203
|
break;
|
|
7179
7204
|
case "context":
|
|
7180
|
-
await
|
|
7205
|
+
await Sa("2️⃣ ", e);
|
|
7181
7206
|
break;
|
|
7182
7207
|
case "presenter":
|
|
7183
|
-
await
|
|
7208
|
+
await Ca("2️⃣ ", e);
|
|
7184
7209
|
break;
|
|
7185
|
-
default: await
|
|
7210
|
+
default: await ba("2️⃣ ", e);
|
|
7186
7211
|
}
|
|
7187
7212
|
await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
|
|
7188
7213
|
"commit",
|
|
@@ -7197,14 +7222,14 @@ async function Sa() {
|
|
|
7197
7222
|
console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
|
|
7198
7223
|
}
|
|
7199
7224
|
}
|
|
7200
|
-
function
|
|
7225
|
+
function Ea() {
|
|
7201
7226
|
try {
|
|
7202
7227
|
K("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
7203
7228
|
} catch (e) {
|
|
7204
7229
|
console.error("❌ Error testing project", e), process.exit(1);
|
|
7205
7230
|
}
|
|
7206
7231
|
}
|
|
7207
|
-
async function
|
|
7232
|
+
async function Da(e, t, n = "./") {
|
|
7208
7233
|
if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
7209
7234
|
else {
|
|
7210
7235
|
let e = t.version, n = t.version.split(".");
|
|
@@ -7213,6 +7238,6 @@ async function wa(e, t, n = "./") {
|
|
|
7213
7238
|
await Rn(`${n}package.json`, t);
|
|
7214
7239
|
}
|
|
7215
7240
|
//#endregion
|
|
7216
|
-
export { Gn as auditDependencies,
|
|
7241
|
+
export { Gn as auditDependencies, _a as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, zi as documentActions, ir as documentBundleSizes, Er as documentDependencies, zr as documentGovernance, Hi as documentOpening, Zi as documentUsage, na as formatCode, ra as lintCode, va as publishProject, ya as releaseProject, Ta as syncProjectWithGitHub, Ea as testProject, aa as uploadDirectoryToR2 };
|
|
7217
7242
|
|
|
7218
7243
|
//# sourceMappingURL=dpuse-development.es.js.map
|