@dpuse/dpuse-development 0.3.677 → 0.3.678
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 +3 -3
- package/dist/dpuse-development.es.js +81 -72
- package/dist/dpuse-development.es.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,10 +104,10 @@ _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 |
|
|
107
|
+
| dist/dpuse-development.es.js | 312.1 kB · brotli 63.0 kB |
|
|
108
108
|
| acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 41.9% |
|
|
109
109
|
| acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 36.7% |
|
|
110
|
-
| src | `██░░░░░░░░░░░░░░░░░░` 10.
|
|
110
|
+
| src | `██░░░░░░░░░░░░░░░░░░` 10.2% |
|
|
111
111
|
| documentDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
|
|
112
112
|
| manageProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
|
|
113
113
|
| index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.5% |
|
|
@@ -115,8 +115,8 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
115
115
|
| checkConfigFiles.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
|
|
116
116
|
| documentGovernance.ts | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
117
117
|
| documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
118
|
+
| documentOpening.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 = Ki(n, r, Wi(e), Gi(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,56 @@ 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
|
|
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, t, n, r) {
|
|
6889
|
+
let i = `https://github.com/${e}/${t}`;
|
|
6885
6890
|
return `[}-blue.svg)](./LICENSE)
|
|
6886
|
-
[](${
|
|
6887
|
-
[](${i}/releases/latest)
|
|
6892
|
+
[](${i}/actions/workflows/ci.yml)
|
|
6893
|
+
[](${i}/actions/workflows/codeql.yml)
|
|
6889
6894
|
[](https://sonarcloud.io/summary/new_code?id=${e}_${t})
|
|
6890
6895
|
|
|
6891
|
-
[Documentation](https://www.dpuse.app) · [Report a Vulnerability](${
|
|
6896
|
+
[Documentation](https://www.dpuse.app) · [Report a Vulnerability](${i}/security/advisories/new) · [Open an Issue](${i}/issues)
|
|
6892
6897
|
|
|
6893
6898
|
## About DPUse
|
|
6894
6899
|
|
|
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
|
|
6900
|
+
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.
|
|
6901
|
+
|
|
6902
|
+
## Introduction
|
|
6903
|
+
|
|
6904
|
+
${r}`;
|
|
6896
6905
|
}
|
|
6897
6906
|
//#endregion
|
|
6898
6907
|
//#region src/actions/documentUsage.ts
|
|
6899
|
-
var
|
|
6900
|
-
async function
|
|
6908
|
+
var qi = "<!-- USAGE_START -->", Ji = "<!-- USAGE_END -->";
|
|
6909
|
+
async function Yi() {
|
|
6901
6910
|
try {
|
|
6902
6911
|
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,
|
|
6912
|
+
let e = await W("package.json"), t = Xi(e), n = $i(t, Zi(t), Qi(e.engines?.node), Qi(e.engines?.npm), Qi(e.devDependencies?.typescript));
|
|
6913
|
+
await zn("README.md", Wn(await G("./README.md"), n, qi, Ji)), q("Usage documented");
|
|
6905
6914
|
} catch (e) {
|
|
6906
6915
|
console.error("❌ Error documenting usage", e), process.exit(1);
|
|
6907
6916
|
}
|
|
6908
6917
|
}
|
|
6909
|
-
function
|
|
6918
|
+
function Xi(e) {
|
|
6910
6919
|
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
6911
6920
|
if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
|
|
6912
6921
|
return n.replace(/^git\+/, "");
|
|
6913
6922
|
}
|
|
6914
|
-
function
|
|
6923
|
+
function Zi(e) {
|
|
6915
6924
|
return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
|
|
6916
6925
|
}
|
|
6917
|
-
function
|
|
6926
|
+
function Qi(e) {
|
|
6918
6927
|
if (e == null) throw Error("package.json version range is required to document usage.");
|
|
6919
6928
|
let t = /\d+/.exec(e);
|
|
6920
6929
|
if (t == null) throw Error(`Unable to parse major version from '${e}'.`);
|
|
6921
6930
|
return t[0];
|
|
6922
6931
|
}
|
|
6923
|
-
function
|
|
6932
|
+
function $i(e, t, n, r, i) {
|
|
6924
6933
|
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
6934
|
|
|
6926
6935
|
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 +6944,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
|
|
|
6935
6944
|
}
|
|
6936
6945
|
//#endregion
|
|
6937
6946
|
//#region src/actions/formatCode.ts
|
|
6938
|
-
async function
|
|
6947
|
+
async function ea() {
|
|
6939
6948
|
try {
|
|
6940
6949
|
K("Format Code"), await Fn("1️⃣ Format", "prettier", [
|
|
6941
6950
|
"--write",
|
|
@@ -6950,7 +6959,7 @@ async function $i() {
|
|
|
6950
6959
|
}
|
|
6951
6960
|
//#endregion
|
|
6952
6961
|
//#region src/actions/lintCode.ts
|
|
6953
|
-
async function
|
|
6962
|
+
async function ta() {
|
|
6954
6963
|
try {
|
|
6955
6964
|
K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
|
|
6956
6965
|
} catch (e) {
|
|
@@ -6959,7 +6968,7 @@ async function ea() {
|
|
|
6959
6968
|
}
|
|
6960
6969
|
//#endregion
|
|
6961
6970
|
//#region src/utilities/cloudflare.ts
|
|
6962
|
-
async function
|
|
6971
|
+
async function na() {
|
|
6963
6972
|
let e = await W("config.json"), t = {
|
|
6964
6973
|
body: JSON.stringify(e),
|
|
6965
6974
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6967,7 +6976,7 @@ async function ta() {
|
|
|
6967
6976
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6968
6977
|
if (!n.ok) throw Error(await n.text());
|
|
6969
6978
|
}
|
|
6970
|
-
async function
|
|
6979
|
+
async function ra(e, t) {
|
|
6971
6980
|
async function n(e, t, r) {
|
|
6972
6981
|
for (let i of r) {
|
|
6973
6982
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
@@ -6985,7 +6994,7 @@ async function na(e, t) {
|
|
|
6985
6994
|
let r = await Nn(`${e}/${t}/`);
|
|
6986
6995
|
await n(`${e}/${t}`, t, r);
|
|
6987
6996
|
}
|
|
6988
|
-
async function
|
|
6997
|
+
async function ia(e) {
|
|
6989
6998
|
let t = e.id, n = {
|
|
6990
6999
|
body: JSON.stringify(e),
|
|
6991
7000
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6993,7 +7002,7 @@ async function ra(e) {
|
|
|
6993
7002
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
6994
7003
|
if (!r.ok) throw Error(await r.text());
|
|
6995
7004
|
}
|
|
6996
|
-
async function
|
|
7005
|
+
async function aa(e, t) {
|
|
6997
7006
|
let n = `v${e.version ?? "unknown"}`;
|
|
6998
7007
|
async function r(e, r = "") {
|
|
6999
7008
|
let i = await Nn(e, { withFileTypes: !0 });
|
|
@@ -7017,24 +7026,24 @@ async function ia(e, t) {
|
|
|
7017
7026
|
}
|
|
7018
7027
|
//#endregion
|
|
7019
7028
|
//#region node_modules/valibot/dist/index.mjs
|
|
7020
|
-
var
|
|
7029
|
+
var oa, sa = {
|
|
7021
7030
|
lang: void 0,
|
|
7022
7031
|
message: void 0,
|
|
7023
7032
|
abortEarly: void 0,
|
|
7024
7033
|
abortPipeEarly: void 0
|
|
7025
7034
|
};
|
|
7026
7035
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7027
|
-
function
|
|
7028
|
-
return !e && !
|
|
7029
|
-
lang: e?.lang ??
|
|
7036
|
+
function ca(e) {
|
|
7037
|
+
return !e && !oa ? sa : {
|
|
7038
|
+
lang: e?.lang ?? oa?.lang,
|
|
7030
7039
|
message: e?.message,
|
|
7031
|
-
abortEarly: e?.abortEarly ??
|
|
7032
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
7040
|
+
abortEarly: e?.abortEarly ?? oa?.abortEarly,
|
|
7041
|
+
abortPipeEarly: e?.abortPipeEarly ?? oa?.abortPipeEarly
|
|
7033
7042
|
};
|
|
7034
7043
|
}
|
|
7035
7044
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7036
|
-
function
|
|
7037
|
-
let r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
7045
|
+
function la(e, t, n) {
|
|
7046
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ ca(n));
|
|
7038
7047
|
return {
|
|
7039
7048
|
typed: r.typed,
|
|
7040
7049
|
success: !r.issues,
|
|
@@ -7044,69 +7053,69 @@ function ca(e, t, n) {
|
|
|
7044
7053
|
}
|
|
7045
7054
|
//#endregion
|
|
7046
7055
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
|
|
7047
|
-
var
|
|
7056
|
+
var ua = /* @__PURE__ */ Q({
|
|
7048
7057
|
typeId: /* @__PURE__ */ ci("contextArea"),
|
|
7049
7058
|
...Si,
|
|
7050
7059
|
modelRefs: /* @__PURE__ */ oi(xi),
|
|
7051
7060
|
order: /* @__PURE__ */ li()
|
|
7052
|
-
}),
|
|
7061
|
+
}), da = mi(["listContextFocuses"]), fa = /* @__PURE__ */ Q({
|
|
7053
7062
|
typeId: /* @__PURE__ */ ci("context"),
|
|
7054
7063
|
...Ci,
|
|
7055
|
-
actionNames: /* @__PURE__ */ oi(
|
|
7056
|
-
models: /* @__PURE__ */ oi(
|
|
7057
|
-
}),
|
|
7064
|
+
actionNames: /* @__PURE__ */ oi(da),
|
|
7065
|
+
models: /* @__PURE__ */ oi(ua)
|
|
7066
|
+
}), pa = mi([
|
|
7058
7067
|
"list",
|
|
7059
7068
|
"render",
|
|
7060
7069
|
"setColorMode"
|
|
7061
|
-
]),
|
|
7070
|
+
]), ma = /* @__PURE__ */ Q({
|
|
7062
7071
|
typeId: /* @__PURE__ */ ci("presenter"),
|
|
7063
7072
|
...Ci,
|
|
7064
|
-
actionNames: /* @__PURE__ */ oi(
|
|
7073
|
+
actionNames: /* @__PURE__ */ oi(pa),
|
|
7065
7074
|
presentations: /* @__PURE__ */ oi(xi)
|
|
7066
7075
|
});
|
|
7067
7076
|
//#endregion
|
|
7068
7077
|
//#region src/actions/manageProject.ts
|
|
7069
|
-
async function
|
|
7078
|
+
async function ha() {
|
|
7070
7079
|
try {
|
|
7071
7080
|
K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
|
|
7072
7081
|
} catch (e) {
|
|
7073
7082
|
console.error("❌ Error building project", e), process.exit(1);
|
|
7074
7083
|
}
|
|
7075
7084
|
}
|
|
7076
|
-
async function
|
|
7085
|
+
async function ga() {
|
|
7077
7086
|
try {
|
|
7078
7087
|
K("Publish Project");
|
|
7079
7088
|
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
|
|
7089
|
+
if (n.typeId === "app") J("1️⃣ Register module"), await na();
|
|
7090
|
+
else if (n.typeId === "engine") J("1️⃣ Register module"), await aa(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ia(t);
|
|
7082
7091
|
else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
|
|
7083
7092
|
else {
|
|
7084
7093
|
J("1️⃣ Register module");
|
|
7085
7094
|
let r = t.id.split("-").slice(2).join("-");
|
|
7086
|
-
await
|
|
7095
|
+
await aa(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ia(t);
|
|
7087
7096
|
}
|
|
7088
7097
|
q(`Project version '${e.version ?? "unknown"}' published.`);
|
|
7089
7098
|
} catch (e) {
|
|
7090
7099
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
7091
7100
|
}
|
|
7092
7101
|
}
|
|
7093
|
-
async function
|
|
7102
|
+
async function _a() {
|
|
7094
7103
|
try {
|
|
7095
7104
|
K("Release Project");
|
|
7096
7105
|
let e = await W("package.json"), t = await W("config.json");
|
|
7097
|
-
await
|
|
7106
|
+
await Ta("1️⃣ ", e);
|
|
7098
7107
|
let n = Bn(t.id);
|
|
7099
7108
|
switch (n.typeId) {
|
|
7100
7109
|
case "connector":
|
|
7101
|
-
t = await
|
|
7110
|
+
t = await ya("2️⃣ ", e);
|
|
7102
7111
|
break;
|
|
7103
7112
|
case "context":
|
|
7104
|
-
t = await
|
|
7113
|
+
t = await ba("2️⃣ ", e);
|
|
7105
7114
|
break;
|
|
7106
7115
|
case "presenter":
|
|
7107
|
-
t = await
|
|
7116
|
+
t = await xa("2️⃣ ", e);
|
|
7108
7117
|
break;
|
|
7109
|
-
default: t = await
|
|
7118
|
+
default: t = await va("2️⃣ ", e);
|
|
7110
7119
|
}
|
|
7111
7120
|
if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
|
|
7112
7121
|
"commit",
|
|
@@ -7116,13 +7125,13 @@ async function ga() {
|
|
|
7116
7125
|
"push",
|
|
7117
7126
|
"origin",
|
|
7118
7127
|
"main:main"
|
|
7119
|
-
]), n.typeId === "app") J("7️⃣ Register module"), await
|
|
7120
|
-
else if (n.typeId === "engine") J("7️⃣ Register module"), await
|
|
7128
|
+
]), n.typeId === "app") J("7️⃣ Register module"), await na();
|
|
7129
|
+
else if (n.typeId === "engine") J("7️⃣ Register module"), await aa(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ia(t);
|
|
7121
7130
|
else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
|
|
7122
7131
|
else {
|
|
7123
7132
|
J("7️⃣ Register module");
|
|
7124
7133
|
let r = t.id.split("-").slice(2).join("-");
|
|
7125
|
-
await
|
|
7134
|
+
await aa(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ia(t);
|
|
7126
7135
|
}
|
|
7127
7136
|
if (n.publishedTo === "npm") {
|
|
7128
7137
|
let e = ".npmrc";
|
|
@@ -7141,48 +7150,48 @@ async function ga() {
|
|
|
7141
7150
|
console.error("❌ Error releasing project", e), process.exit(1);
|
|
7142
7151
|
}
|
|
7143
7152
|
}
|
|
7144
|
-
async function
|
|
7153
|
+
async function va(e, t) {
|
|
7145
7154
|
J(`${e} Build project configuration`);
|
|
7146
7155
|
let n = await W("config.json");
|
|
7147
7156
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
|
|
7148
7157
|
}
|
|
7149
|
-
async function
|
|
7158
|
+
async function ya(e, t) {
|
|
7150
7159
|
J(`${e} Build connector project configuration`);
|
|
7151
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7160
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ la(Oi, n);
|
|
7152
7161
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7153
7162
|
let a = Hn(r);
|
|
7154
|
-
return await
|
|
7163
|
+
return await Sa(t, n, a, Mi(a));
|
|
7155
7164
|
}
|
|
7156
|
-
async function
|
|
7165
|
+
async function ba(e, t) {
|
|
7157
7166
|
J(`${e} Build context project configuration`);
|
|
7158
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7167
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ la(fa, n);
|
|
7159
7168
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7160
|
-
return await
|
|
7169
|
+
return await Sa(t, n, Hn(r));
|
|
7161
7170
|
}
|
|
7162
|
-
async function
|
|
7171
|
+
async function xa(e, t) {
|
|
7163
7172
|
J(`${e} Build presenter project configuration`);
|
|
7164
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7173
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ la(ma, n);
|
|
7165
7174
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7166
|
-
return await
|
|
7175
|
+
return await Sa(t, n, Hn(r));
|
|
7167
7176
|
}
|
|
7168
|
-
async function
|
|
7177
|
+
async function Sa(e, t, n, r) {
|
|
7169
7178
|
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
7179
|
}
|
|
7171
|
-
async function
|
|
7180
|
+
async function Ca() {
|
|
7172
7181
|
try {
|
|
7173
7182
|
K("Synchronise Project with GitHub");
|
|
7174
7183
|
let e = await W("package.json"), t = await W("config.json");
|
|
7175
|
-
switch (await
|
|
7184
|
+
switch (await Ta("1️⃣ ", e), Bn(t.id).typeId) {
|
|
7176
7185
|
case "connector":
|
|
7177
|
-
await
|
|
7186
|
+
await ya("2️⃣ ", e);
|
|
7178
7187
|
break;
|
|
7179
7188
|
case "context":
|
|
7180
|
-
await
|
|
7189
|
+
await ba("2️⃣ ", e);
|
|
7181
7190
|
break;
|
|
7182
7191
|
case "presenter":
|
|
7183
|
-
await
|
|
7192
|
+
await xa("2️⃣ ", e);
|
|
7184
7193
|
break;
|
|
7185
|
-
default: await
|
|
7194
|
+
default: await va("2️⃣ ", e);
|
|
7186
7195
|
}
|
|
7187
7196
|
await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
|
|
7188
7197
|
"commit",
|
|
@@ -7197,14 +7206,14 @@ async function Sa() {
|
|
|
7197
7206
|
console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
|
|
7198
7207
|
}
|
|
7199
7208
|
}
|
|
7200
|
-
function
|
|
7209
|
+
function wa() {
|
|
7201
7210
|
try {
|
|
7202
7211
|
K("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
7203
7212
|
} catch (e) {
|
|
7204
7213
|
console.error("❌ Error testing project", e), process.exit(1);
|
|
7205
7214
|
}
|
|
7206
7215
|
}
|
|
7207
|
-
async function
|
|
7216
|
+
async function Ta(e, t, n = "./") {
|
|
7208
7217
|
if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
7209
7218
|
else {
|
|
7210
7219
|
let e = t.version, n = t.version.split(".");
|
|
@@ -7213,6 +7222,6 @@ async function wa(e, t, n = "./") {
|
|
|
7213
7222
|
await Rn(`${n}package.json`, t);
|
|
7214
7223
|
}
|
|
7215
7224
|
//#endregion
|
|
7216
|
-
export { Gn as auditDependencies,
|
|
7225
|
+
export { Gn as auditDependencies, ha as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, zi as documentActions, ir as documentBundleSizes, Er as documentDependencies, zr as documentGovernance, Hi as documentOpening, Yi as documentUsage, ea as formatCode, ta as lintCode, ga as publishProject, _a as releaseProject, Ca as syncProjectWithGitHub, wa as testProject, ra as uploadDirectoryToR2 };
|
|
7217
7226
|
|
|
7218
7227
|
//# sourceMappingURL=dpuse-development.es.js.map
|