@dpuse/dpuse-development 0.3.638 → 0.3.640
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/.gitattributes +2 -0
- package/dist/dpuse-development.es.js +36 -36
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/eslint.config.d.ts +2 -2
- package/dist/types/eslint.config.default.d.ts +2 -2
- package/dist/types/src/actions/manageProject.d.ts +1 -1
- package/package.json +2 -2
- package/eslint.config.default.ts +0 -16
package/.gitattributes
CHANGED
|
@@ -5878,7 +5878,7 @@ async function qn() {
|
|
|
5878
5878
|
try {
|
|
5879
5879
|
G("Check configuration files"), q("1️⃣ Check individual files");
|
|
5880
5880
|
let e = Vn((await W("config.json")).id), t = n.dirname(o(import.meta.url));
|
|
5881
|
-
if (await J(t, ".editorconfig"), await J(t, ".gitattributes"), await J(t, ".gitignore", [e.publishedTo === "npm" ? ".gitignore_published" : ".gitignore_unpublished"]), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), ["eslint"].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.
|
|
5881
|
+
if (await J(t, ".editorconfig"), await J(t, ".gitattributes"), await J(t, ".gitignore", [e.publishedTo === "npm" ? ".gitignore_published" : ".gitignore_unpublished"]), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), ["eslint"].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is NOT required by this project") : await J(t, "eslint.config.js", ["eslint.config.default.js"]), await J(t, "LICENSE"), await J(t, "tsconfig.scripts.json"), ["eslint", "kb"].includes(e.typeId)) console.info("ℹ️ File 'vite.config.ts' is NOT required by this project");
|
|
5882
5882
|
else if ([
|
|
5883
5883
|
"app",
|
|
5884
5884
|
"api",
|
|
@@ -6859,6 +6859,23 @@ async function Fi() {
|
|
|
6859
6859
|
}
|
|
6860
6860
|
}
|
|
6861
6861
|
async function Ii() {
|
|
6862
|
+
try {
|
|
6863
|
+
G("Publish Project");
|
|
6864
|
+
let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
|
|
6865
|
+
if (n.typeId === "app") q("1️⃣ Register module"), await bi();
|
|
6866
|
+
else if (n.typeId === "engine") q("1️⃣ Register module"), await Ci(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Si(t);
|
|
6867
|
+
else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
|
|
6868
|
+
else {
|
|
6869
|
+
q("1️⃣ Register module");
|
|
6870
|
+
let r = t.id.split("-").slice(2).join("-");
|
|
6871
|
+
await Ci(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Si(t);
|
|
6872
|
+
}
|
|
6873
|
+
K(`Project version '${e.version ?? "unknown"}' published.`);
|
|
6874
|
+
} catch (e) {
|
|
6875
|
+
console.error("❌ Error publishing project", e), process.exit(1);
|
|
6876
|
+
}
|
|
6877
|
+
}
|
|
6878
|
+
async function Li() {
|
|
6862
6879
|
try {
|
|
6863
6880
|
G("Release Project");
|
|
6864
6881
|
let e = await W("package.json"), t = await W("config.json");
|
|
@@ -6866,15 +6883,15 @@ async function Ii() {
|
|
|
6866
6883
|
let n = Vn(t.id);
|
|
6867
6884
|
switch (n.typeId) {
|
|
6868
6885
|
case "connector":
|
|
6869
|
-
t = await
|
|
6886
|
+
t = await zi("2️⃣ ", e);
|
|
6870
6887
|
break;
|
|
6871
6888
|
case "context":
|
|
6872
|
-
t = await
|
|
6889
|
+
t = await Bi("2️⃣ ", e);
|
|
6873
6890
|
break;
|
|
6874
6891
|
case "presenter":
|
|
6875
|
-
t = await
|
|
6892
|
+
t = await Vi("2️⃣ ", e);
|
|
6876
6893
|
break;
|
|
6877
|
-
default: t = await
|
|
6894
|
+
default: t = await Ri("2️⃣ ", e);
|
|
6878
6895
|
}
|
|
6879
6896
|
if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
|
|
6880
6897
|
"commit",
|
|
@@ -6909,70 +6926,53 @@ async function Ii() {
|
|
|
6909
6926
|
console.error("❌ Error releasing project", e), process.exit(1);
|
|
6910
6927
|
}
|
|
6911
6928
|
}
|
|
6912
|
-
async function
|
|
6929
|
+
async function Ri(e, t) {
|
|
6913
6930
|
q(`${e} Build project configuration`);
|
|
6914
6931
|
let n = await W("config.json");
|
|
6915
6932
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await zn("config.json", n), n;
|
|
6916
6933
|
}
|
|
6917
|
-
async function
|
|
6934
|
+
async function zi(e, t) {
|
|
6918
6935
|
q(`${e} Build connector project configuration`);
|
|
6919
6936
|
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Di(fi, n);
|
|
6920
6937
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
6921
6938
|
let a = Un(r);
|
|
6922
|
-
return await
|
|
6939
|
+
return await Ui(t, n, a, Hi(a));
|
|
6923
6940
|
}
|
|
6924
|
-
async function
|
|
6941
|
+
async function Bi(e, t) {
|
|
6925
6942
|
q(`${e} Build context project configuration`);
|
|
6926
6943
|
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Di(Ai, n);
|
|
6927
6944
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
6928
|
-
return await
|
|
6945
|
+
return await Ui(t, n, Un(r));
|
|
6929
6946
|
}
|
|
6930
|
-
async function
|
|
6947
|
+
async function Vi(e, t) {
|
|
6931
6948
|
q(`${e} Build presenter project configuration`);
|
|
6932
6949
|
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Di(Mi, n);
|
|
6933
6950
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
6934
|
-
return await
|
|
6951
|
+
return await Ui(t, n, Un(r));
|
|
6935
6952
|
}
|
|
6936
|
-
function
|
|
6953
|
+
function Hi(e) {
|
|
6937
6954
|
let t = !1, n = !1;
|
|
6938
6955
|
for (let r of e) Pi.has(r) && (t = !0), Ni.has(r) && (n = !0);
|
|
6939
6956
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
6940
6957
|
}
|
|
6941
|
-
async function
|
|
6958
|
+
async function Ui(e, t, n, r) {
|
|
6942
6959
|
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") : console.info(`ℹ️ Supports '${r ?? "unknown"}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.operations = n, t.usageId = r ?? "unknown", await zn("config.json", t), t;
|
|
6943
6960
|
}
|
|
6944
|
-
async function Ui() {
|
|
6945
|
-
try {
|
|
6946
|
-
G("Publish Project");
|
|
6947
|
-
let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
|
|
6948
|
-
if (n.typeId === "app") q("1️⃣ Register module"), await bi();
|
|
6949
|
-
else if (n.typeId === "engine") q("1️⃣ Register module"), await Ci(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Si(t);
|
|
6950
|
-
else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
|
|
6951
|
-
else {
|
|
6952
|
-
q("1️⃣ Register module");
|
|
6953
|
-
let r = t.id.split("-").slice(2).join("-");
|
|
6954
|
-
await Ci(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Si(t);
|
|
6955
|
-
}
|
|
6956
|
-
K(`Project version '${e.version ?? "unknown"}' published.`);
|
|
6957
|
-
} catch (e) {
|
|
6958
|
-
console.error("❌ Error publishing project", e), process.exit(1);
|
|
6959
|
-
}
|
|
6960
|
-
}
|
|
6961
6961
|
async function Wi() {
|
|
6962
6962
|
try {
|
|
6963
6963
|
G("Synchronise Project with GitHub");
|
|
6964
6964
|
let e = await W("package.json"), t = await W("config.json");
|
|
6965
6965
|
switch (await Ki("1️⃣ ", e), Vn(t.id).typeId) {
|
|
6966
6966
|
case "connector":
|
|
6967
|
-
await
|
|
6967
|
+
await zi("2️⃣ ", e);
|
|
6968
6968
|
break;
|
|
6969
6969
|
case "context":
|
|
6970
|
-
await
|
|
6970
|
+
await Bi("2️⃣ ", e);
|
|
6971
6971
|
break;
|
|
6972
6972
|
case "presenter":
|
|
6973
|
-
await
|
|
6973
|
+
await Vi("2️⃣ ", e);
|
|
6974
6974
|
break;
|
|
6975
|
-
default: await
|
|
6975
|
+
default: await Ri("2️⃣ ", e);
|
|
6976
6976
|
}
|
|
6977
6977
|
await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
|
|
6978
6978
|
"commit",
|
|
@@ -7003,6 +7003,6 @@ async function Ki(e, t, n = "./") {
|
|
|
7003
7003
|
await zn(`${n}package.json`, t);
|
|
7004
7004
|
}
|
|
7005
7005
|
//#endregion
|
|
7006
|
-
export { Kn as auditDependencies, Fi as buildProject, qn as checkConfigFiles, Jn as checkDependencies, _i as documentActions, $n as documentBundleSizes, br as documentDependencies, vi as formatCode, yi as lintCode,
|
|
7006
|
+
export { Kn as auditDependencies, Fi as buildProject, qn as checkConfigFiles, Jn as checkDependencies, _i as documentActions, $n as documentBundleSizes, br as documentDependencies, vi as formatCode, yi as lintCode, Ii as publishProject, Li as releaseProject, Wi as syncProjectWithGitHub, Gi as testProject, xi as uploadDirectoryToR2 };
|
|
7007
7007
|
|
|
7008
7008
|
//# sourceMappingURL=dpuse-development.es.js.map
|