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