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