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