@dpuse/dpuse-development 0.3.678 → 0.3.680
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 +87 -72
- package/dist/dpuse-development.es.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,18 +104,18 @@ _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 | 312.
|
|
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
|
-
| documentOpening.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
119
119
|
| cloudflare.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
120
120
|
| documentUsage.ts | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
121
121
|
| checkDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
@@ -6855,17 +6855,19 @@ async function zi() {
|
|
|
6855
6855
|
}
|
|
6856
6856
|
//#endregion
|
|
6857
6857
|
//#region src/actions/documentOpening.ts
|
|
6858
|
-
var Bi = "<!-- OPENING_START -->", Vi = "<!-- OPENING_END -->";
|
|
6859
|
-
async function
|
|
6858
|
+
var Bi = "<!-- OPENING_START -->", Vi = "<!-- OPENING_END -->", Hi = "icon.svg", Ui = "icon-dark.svg";
|
|
6859
|
+
async function Wi() {
|
|
6860
6860
|
try {
|
|
6861
6861
|
K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
|
|
6862
|
-
let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } =
|
|
6863
|
-
await zn(
|
|
6862
|
+
let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = Gi(e), i = Ki(e), a = qi(t), o = Ji(t);
|
|
6863
|
+
await zn(Hi, o.icon), await zn(Ui, o.iconDark);
|
|
6864
|
+
let s = Yi(n, r, i, a);
|
|
6865
|
+
await zn("README.md", Wn(await G("./README.md"), s, Bi, Vi)), q("Opening documented");
|
|
6864
6866
|
} catch (e) {
|
|
6865
6867
|
console.error("❌ Error documenting opening", e), process.exit(1);
|
|
6866
6868
|
}
|
|
6867
6869
|
}
|
|
6868
|
-
function
|
|
6870
|
+
function Gi(e) {
|
|
6869
6871
|
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
6870
6872
|
if (n == null || n === "") throw Error("package.json 'repository' field is required to document opening.");
|
|
6871
6873
|
let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
|
|
@@ -6875,19 +6877,32 @@ function Ui(e) {
|
|
|
6875
6877
|
repo: i[2]
|
|
6876
6878
|
};
|
|
6877
6879
|
}
|
|
6878
|
-
function
|
|
6880
|
+
function Ki(e) {
|
|
6879
6881
|
let t = e.license;
|
|
6880
6882
|
if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
|
|
6881
6883
|
return t;
|
|
6882
6884
|
}
|
|
6883
|
-
function
|
|
6885
|
+
function qi(e) {
|
|
6884
6886
|
let t = e.description.en;
|
|
6885
6887
|
if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
|
|
6886
6888
|
return t.join("\n\n");
|
|
6887
6889
|
}
|
|
6888
|
-
function
|
|
6890
|
+
function Ji(e) {
|
|
6891
|
+
let { icon: t, iconDark: n } = e;
|
|
6892
|
+
if (t == null || n == null) throw Error("config.json 'icon' and 'iconDark' fields are required to document opening.");
|
|
6893
|
+
return {
|
|
6894
|
+
icon: t,
|
|
6895
|
+
iconDark: n
|
|
6896
|
+
};
|
|
6897
|
+
}
|
|
6898
|
+
function Yi(e, t, n, r) {
|
|
6889
6899
|
let i = `https://github.com/${e}/${t}`;
|
|
6890
|
-
return
|
|
6900
|
+
return `<picture>
|
|
6901
|
+
<source media="(prefers-color-scheme: dark)" srcset="./${Ui}">
|
|
6902
|
+
<img src="./${Hi}" alt="${t} icon" width="48" height="48">
|
|
6903
|
+
</picture>
|
|
6904
|
+
|
|
6905
|
+
[}-blue.svg)](./LICENSE)
|
|
6891
6906
|
[](${i}/releases/latest)
|
|
6892
6907
|
[](${i}/actions/workflows/ci.yml)
|
|
6893
6908
|
[](${i}/actions/workflows/codeql.yml)
|
|
@@ -6905,31 +6920,31 @@ ${r}`;
|
|
|
6905
6920
|
}
|
|
6906
6921
|
//#endregion
|
|
6907
6922
|
//#region src/actions/documentUsage.ts
|
|
6908
|
-
var
|
|
6909
|
-
async function
|
|
6923
|
+
var Xi = "<!-- USAGE_START -->", Zi = "<!-- USAGE_END -->";
|
|
6924
|
+
async function Qi() {
|
|
6910
6925
|
try {
|
|
6911
6926
|
K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
|
|
6912
|
-
let e = await W("package.json"), t =
|
|
6913
|
-
await zn("README.md", Wn(await G("./README.md"), n,
|
|
6927
|
+
let e = await W("package.json"), t = $i(e), n = na(t, ea(t), ta(e.engines?.node), ta(e.engines?.npm), ta(e.devDependencies?.typescript));
|
|
6928
|
+
await zn("README.md", Wn(await G("./README.md"), n, Xi, Zi)), q("Usage documented");
|
|
6914
6929
|
} catch (e) {
|
|
6915
6930
|
console.error("❌ Error documenting usage", e), process.exit(1);
|
|
6916
6931
|
}
|
|
6917
6932
|
}
|
|
6918
|
-
function
|
|
6933
|
+
function $i(e) {
|
|
6919
6934
|
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
6920
6935
|
if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
|
|
6921
6936
|
return n.replace(/^git\+/, "");
|
|
6922
6937
|
}
|
|
6923
|
-
function
|
|
6938
|
+
function ea(e) {
|
|
6924
6939
|
return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
|
|
6925
6940
|
}
|
|
6926
|
-
function
|
|
6941
|
+
function ta(e) {
|
|
6927
6942
|
if (e == null) throw Error("package.json version range is required to document usage.");
|
|
6928
6943
|
let t = /\d+/.exec(e);
|
|
6929
6944
|
if (t == null) throw Error(`Unable to parse major version from '${e}'.`);
|
|
6930
6945
|
return t[0];
|
|
6931
6946
|
}
|
|
6932
|
-
function
|
|
6947
|
+
function na(e, t, n, r, i) {
|
|
6933
6948
|
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.
|
|
6934
6949
|
|
|
6935
6950
|
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.
|
|
@@ -6944,7 +6959,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
|
|
|
6944
6959
|
}
|
|
6945
6960
|
//#endregion
|
|
6946
6961
|
//#region src/actions/formatCode.ts
|
|
6947
|
-
async function
|
|
6962
|
+
async function ra() {
|
|
6948
6963
|
try {
|
|
6949
6964
|
K("Format Code"), await Fn("1️⃣ Format", "prettier", [
|
|
6950
6965
|
"--write",
|
|
@@ -6959,7 +6974,7 @@ async function ea() {
|
|
|
6959
6974
|
}
|
|
6960
6975
|
//#endregion
|
|
6961
6976
|
//#region src/actions/lintCode.ts
|
|
6962
|
-
async function
|
|
6977
|
+
async function ia() {
|
|
6963
6978
|
try {
|
|
6964
6979
|
K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
|
|
6965
6980
|
} catch (e) {
|
|
@@ -6968,7 +6983,7 @@ async function ta() {
|
|
|
6968
6983
|
}
|
|
6969
6984
|
//#endregion
|
|
6970
6985
|
//#region src/utilities/cloudflare.ts
|
|
6971
|
-
async function
|
|
6986
|
+
async function aa() {
|
|
6972
6987
|
let e = await W("config.json"), t = {
|
|
6973
6988
|
body: JSON.stringify(e),
|
|
6974
6989
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6976,7 +6991,7 @@ async function na() {
|
|
|
6976
6991
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6977
6992
|
if (!n.ok) throw Error(await n.text());
|
|
6978
6993
|
}
|
|
6979
|
-
async function
|
|
6994
|
+
async function oa(e, t) {
|
|
6980
6995
|
async function n(e, t, r) {
|
|
6981
6996
|
for (let i of r) {
|
|
6982
6997
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
@@ -6994,7 +7009,7 @@ async function ra(e, t) {
|
|
|
6994
7009
|
let r = await Nn(`${e}/${t}/`);
|
|
6995
7010
|
await n(`${e}/${t}`, t, r);
|
|
6996
7011
|
}
|
|
6997
|
-
async function
|
|
7012
|
+
async function sa(e) {
|
|
6998
7013
|
let t = e.id, n = {
|
|
6999
7014
|
body: JSON.stringify(e),
|
|
7000
7015
|
headers: { "Content-Type": "application/json" },
|
|
@@ -7002,7 +7017,7 @@ async function ia(e) {
|
|
|
7002
7017
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
7003
7018
|
if (!r.ok) throw Error(await r.text());
|
|
7004
7019
|
}
|
|
7005
|
-
async function
|
|
7020
|
+
async function ca(e, t) {
|
|
7006
7021
|
let n = `v${e.version ?? "unknown"}`;
|
|
7007
7022
|
async function r(e, r = "") {
|
|
7008
7023
|
let i = await Nn(e, { withFileTypes: !0 });
|
|
@@ -7026,24 +7041,24 @@ async function aa(e, t) {
|
|
|
7026
7041
|
}
|
|
7027
7042
|
//#endregion
|
|
7028
7043
|
//#region node_modules/valibot/dist/index.mjs
|
|
7029
|
-
var
|
|
7044
|
+
var la, ua = {
|
|
7030
7045
|
lang: void 0,
|
|
7031
7046
|
message: void 0,
|
|
7032
7047
|
abortEarly: void 0,
|
|
7033
7048
|
abortPipeEarly: void 0
|
|
7034
7049
|
};
|
|
7035
7050
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7036
|
-
function
|
|
7037
|
-
return !e && !
|
|
7038
|
-
lang: e?.lang ??
|
|
7051
|
+
function da(e) {
|
|
7052
|
+
return !e && !la ? ua : {
|
|
7053
|
+
lang: e?.lang ?? la?.lang,
|
|
7039
7054
|
message: e?.message,
|
|
7040
|
-
abortEarly: e?.abortEarly ??
|
|
7041
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
7055
|
+
abortEarly: e?.abortEarly ?? la?.abortEarly,
|
|
7056
|
+
abortPipeEarly: e?.abortPipeEarly ?? la?.abortPipeEarly
|
|
7042
7057
|
};
|
|
7043
7058
|
}
|
|
7044
7059
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7045
|
-
function
|
|
7046
|
-
let r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
7060
|
+
function fa(e, t, n) {
|
|
7061
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ da(n));
|
|
7047
7062
|
return {
|
|
7048
7063
|
typed: r.typed,
|
|
7049
7064
|
success: !r.issues,
|
|
@@ -7053,69 +7068,69 @@ function la(e, t, n) {
|
|
|
7053
7068
|
}
|
|
7054
7069
|
//#endregion
|
|
7055
7070
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
|
|
7056
|
-
var
|
|
7071
|
+
var pa = /* @__PURE__ */ Q({
|
|
7057
7072
|
typeId: /* @__PURE__ */ ci("contextArea"),
|
|
7058
7073
|
...Si,
|
|
7059
7074
|
modelRefs: /* @__PURE__ */ oi(xi),
|
|
7060
7075
|
order: /* @__PURE__ */ li()
|
|
7061
|
-
}),
|
|
7076
|
+
}), ma = mi(["listContextFocuses"]), ha = /* @__PURE__ */ Q({
|
|
7062
7077
|
typeId: /* @__PURE__ */ ci("context"),
|
|
7063
7078
|
...Ci,
|
|
7064
|
-
actionNames: /* @__PURE__ */ oi(
|
|
7065
|
-
models: /* @__PURE__ */ oi(
|
|
7066
|
-
}),
|
|
7079
|
+
actionNames: /* @__PURE__ */ oi(ma),
|
|
7080
|
+
models: /* @__PURE__ */ oi(pa)
|
|
7081
|
+
}), ga = mi([
|
|
7067
7082
|
"list",
|
|
7068
7083
|
"render",
|
|
7069
7084
|
"setColorMode"
|
|
7070
|
-
]),
|
|
7085
|
+
]), _a = /* @__PURE__ */ Q({
|
|
7071
7086
|
typeId: /* @__PURE__ */ ci("presenter"),
|
|
7072
7087
|
...Ci,
|
|
7073
|
-
actionNames: /* @__PURE__ */ oi(
|
|
7088
|
+
actionNames: /* @__PURE__ */ oi(ga),
|
|
7074
7089
|
presentations: /* @__PURE__ */ oi(xi)
|
|
7075
7090
|
});
|
|
7076
7091
|
//#endregion
|
|
7077
7092
|
//#region src/actions/manageProject.ts
|
|
7078
|
-
async function
|
|
7093
|
+
async function va() {
|
|
7079
7094
|
try {
|
|
7080
7095
|
K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
|
|
7081
7096
|
} catch (e) {
|
|
7082
7097
|
console.error("❌ Error building project", e), process.exit(1);
|
|
7083
7098
|
}
|
|
7084
7099
|
}
|
|
7085
|
-
async function
|
|
7100
|
+
async function ya() {
|
|
7086
7101
|
try {
|
|
7087
7102
|
K("Publish Project");
|
|
7088
7103
|
let e = await W("package.json"), t = await W("config.json"), n = Bn(t.id);
|
|
7089
|
-
if (n.typeId === "app") J("1️⃣ Register module"), await
|
|
7090
|
-
else if (n.typeId === "engine") J("1️⃣ Register module"), await
|
|
7104
|
+
if (n.typeId === "app") J("1️⃣ Register module"), await aa();
|
|
7105
|
+
else if (n.typeId === "engine") J("1️⃣ Register module"), await ca(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await sa(t);
|
|
7091
7106
|
else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
|
|
7092
7107
|
else {
|
|
7093
7108
|
J("1️⃣ Register module");
|
|
7094
7109
|
let r = t.id.split("-").slice(2).join("-");
|
|
7095
|
-
await
|
|
7110
|
+
await ca(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await sa(t);
|
|
7096
7111
|
}
|
|
7097
7112
|
q(`Project version '${e.version ?? "unknown"}' published.`);
|
|
7098
7113
|
} catch (e) {
|
|
7099
7114
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
7100
7115
|
}
|
|
7101
7116
|
}
|
|
7102
|
-
async function
|
|
7117
|
+
async function ba() {
|
|
7103
7118
|
try {
|
|
7104
7119
|
K("Release Project");
|
|
7105
7120
|
let e = await W("package.json"), t = await W("config.json");
|
|
7106
|
-
await
|
|
7121
|
+
await Oa("1️⃣ ", e);
|
|
7107
7122
|
let n = Bn(t.id);
|
|
7108
7123
|
switch (n.typeId) {
|
|
7109
7124
|
case "connector":
|
|
7110
|
-
t = await
|
|
7125
|
+
t = await Sa("2️⃣ ", e);
|
|
7111
7126
|
break;
|
|
7112
7127
|
case "context":
|
|
7113
|
-
t = await
|
|
7128
|
+
t = await Ca("2️⃣ ", e);
|
|
7114
7129
|
break;
|
|
7115
7130
|
case "presenter":
|
|
7116
|
-
t = await
|
|
7131
|
+
t = await wa("2️⃣ ", e);
|
|
7117
7132
|
break;
|
|
7118
|
-
default: t = await
|
|
7133
|
+
default: t = await xa("2️⃣ ", e);
|
|
7119
7134
|
}
|
|
7120
7135
|
if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
|
|
7121
7136
|
"commit",
|
|
@@ -7125,13 +7140,13 @@ async function _a() {
|
|
|
7125
7140
|
"push",
|
|
7126
7141
|
"origin",
|
|
7127
7142
|
"main:main"
|
|
7128
|
-
]), n.typeId === "app") J("7️⃣ Register module"), await
|
|
7129
|
-
else if (n.typeId === "engine") J("7️⃣ Register module"), await
|
|
7143
|
+
]), n.typeId === "app") J("7️⃣ Register module"), await aa();
|
|
7144
|
+
else if (n.typeId === "engine") J("7️⃣ Register module"), await ca(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await sa(t);
|
|
7130
7145
|
else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
|
|
7131
7146
|
else {
|
|
7132
7147
|
J("7️⃣ Register module");
|
|
7133
7148
|
let r = t.id.split("-").slice(2).join("-");
|
|
7134
|
-
await
|
|
7149
|
+
await ca(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await sa(t);
|
|
7135
7150
|
}
|
|
7136
7151
|
if (n.publishedTo === "npm") {
|
|
7137
7152
|
let e = ".npmrc";
|
|
@@ -7150,48 +7165,48 @@ async function _a() {
|
|
|
7150
7165
|
console.error("❌ Error releasing project", e), process.exit(1);
|
|
7151
7166
|
}
|
|
7152
7167
|
}
|
|
7153
|
-
async function
|
|
7168
|
+
async function xa(e, t) {
|
|
7154
7169
|
J(`${e} Build project configuration`);
|
|
7155
7170
|
let n = await W("config.json");
|
|
7156
7171
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
|
|
7157
7172
|
}
|
|
7158
|
-
async function
|
|
7173
|
+
async function Sa(e, t) {
|
|
7159
7174
|
J(`${e} Build connector project configuration`);
|
|
7160
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7175
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ fa(Oi, n);
|
|
7161
7176
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7162
7177
|
let a = Hn(r);
|
|
7163
|
-
return await
|
|
7178
|
+
return await Ta(t, n, a, Mi(a));
|
|
7164
7179
|
}
|
|
7165
|
-
async function
|
|
7180
|
+
async function Ca(e, t) {
|
|
7166
7181
|
J(`${e} Build context project configuration`);
|
|
7167
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7182
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ fa(ha, n);
|
|
7168
7183
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7169
|
-
return await
|
|
7184
|
+
return await Ta(t, n, Hn(r));
|
|
7170
7185
|
}
|
|
7171
|
-
async function
|
|
7186
|
+
async function wa(e, t) {
|
|
7172
7187
|
J(`${e} Build presenter project configuration`);
|
|
7173
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7188
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ fa(_a, n);
|
|
7174
7189
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7175
|
-
return await
|
|
7190
|
+
return await Ta(t, n, Hn(r));
|
|
7176
7191
|
}
|
|
7177
|
-
async function
|
|
7192
|
+
async function Ta(e, t, n, r) {
|
|
7178
7193
|
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;
|
|
7179
7194
|
}
|
|
7180
|
-
async function
|
|
7195
|
+
async function Ea() {
|
|
7181
7196
|
try {
|
|
7182
7197
|
K("Synchronise Project with GitHub");
|
|
7183
7198
|
let e = await W("package.json"), t = await W("config.json");
|
|
7184
|
-
switch (await
|
|
7199
|
+
switch (await Oa("1️⃣ ", e), Bn(t.id).typeId) {
|
|
7185
7200
|
case "connector":
|
|
7186
|
-
await
|
|
7201
|
+
await Sa("2️⃣ ", e);
|
|
7187
7202
|
break;
|
|
7188
7203
|
case "context":
|
|
7189
|
-
await
|
|
7204
|
+
await Ca("2️⃣ ", e);
|
|
7190
7205
|
break;
|
|
7191
7206
|
case "presenter":
|
|
7192
|
-
await
|
|
7207
|
+
await wa("2️⃣ ", e);
|
|
7193
7208
|
break;
|
|
7194
|
-
default: await
|
|
7209
|
+
default: await xa("2️⃣ ", e);
|
|
7195
7210
|
}
|
|
7196
7211
|
await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
|
|
7197
7212
|
"commit",
|
|
@@ -7206,14 +7221,14 @@ async function Ca() {
|
|
|
7206
7221
|
console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
|
|
7207
7222
|
}
|
|
7208
7223
|
}
|
|
7209
|
-
function
|
|
7224
|
+
function Da() {
|
|
7210
7225
|
try {
|
|
7211
7226
|
K("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
7212
7227
|
} catch (e) {
|
|
7213
7228
|
console.error("❌ Error testing project", e), process.exit(1);
|
|
7214
7229
|
}
|
|
7215
7230
|
}
|
|
7216
|
-
async function
|
|
7231
|
+
async function Oa(e, t, n = "./") {
|
|
7217
7232
|
if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
7218
7233
|
else {
|
|
7219
7234
|
let e = t.version, n = t.version.split(".");
|
|
@@ -7222,6 +7237,6 @@ async function Ta(e, t, n = "./") {
|
|
|
7222
7237
|
await Rn(`${n}package.json`, t);
|
|
7223
7238
|
}
|
|
7224
7239
|
//#endregion
|
|
7225
|
-
export { Gn as auditDependencies,
|
|
7240
|
+
export { Gn as auditDependencies, va as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, zi as documentActions, ir as documentBundleSizes, Er as documentDependencies, zr as documentGovernance, Wi as documentOpening, Qi as documentUsage, ra as formatCode, ia as lintCode, ya as publishProject, ba as releaseProject, Ea as syncProjectWithGitHub, Da as testProject, oa as uploadDirectoryToR2 };
|
|
7226
7241
|
|
|
7227
7242
|
//# sourceMappingURL=dpuse-development.es.js.map
|