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