@datapos/datapos-development 0.3.245 → 0.3.247
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.
|
@@ -7728,41 +7728,41 @@ async function Yh() {
|
|
|
7728
7728
|
console.error("❌ Error building project.", e), process.exit(1);
|
|
7729
7729
|
}
|
|
7730
7730
|
}
|
|
7731
|
-
async function ep(
|
|
7731
|
+
async function ep() {
|
|
7732
7732
|
try {
|
|
7733
7733
|
Le("Release Project");
|
|
7734
|
-
const
|
|
7735
|
-
await Pr("1️⃣",
|
|
7736
|
-
const
|
|
7737
|
-
switch (
|
|
7734
|
+
const e = await Ce("package.json"), t = await Ce("config.json");
|
|
7735
|
+
await Pr("1️⃣", e);
|
|
7736
|
+
const i = Rh(e);
|
|
7737
|
+
switch (i) {
|
|
7738
7738
|
case "connector":
|
|
7739
|
-
await zh("2️⃣",
|
|
7739
|
+
await zh("2️⃣", e);
|
|
7740
7740
|
break;
|
|
7741
7741
|
case "context":
|
|
7742
|
-
await Vh("2️⃣",
|
|
7742
|
+
await Vh("2️⃣", e);
|
|
7743
7743
|
break;
|
|
7744
7744
|
case "presenter":
|
|
7745
|
-
await jh("2️⃣",
|
|
7745
|
+
await jh("2️⃣", e);
|
|
7746
7746
|
break;
|
|
7747
7747
|
default:
|
|
7748
|
-
await Dh("2️⃣",
|
|
7748
|
+
await Dh("2️⃣", e);
|
|
7749
7749
|
}
|
|
7750
|
-
await Ee("3️⃣ Bundle project", "vite", ["build"]), await Te("4️⃣ Stage changes", "git", ["add", "."]), await Te("5️⃣ Commit changes", "git", ["commit", "-m", `"v${
|
|
7751
|
-
const
|
|
7752
|
-
if (
|
|
7753
|
-
oe("7️⃣
|
|
7754
|
-
else if (
|
|
7755
|
-
oe("7️⃣
|
|
7756
|
-
else if (
|
|
7757
|
-
oe("7️⃣
|
|
7750
|
+
await Ee("3️⃣ Bundle project", "vite", ["build"]), await Te("4️⃣ Stage changes", "git", ["add", "."]), await Te("5️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await Te("6️⃣ Push changes", "git", ["push", "origin", "main:main"]);
|
|
7751
|
+
const s = Bh(i);
|
|
7752
|
+
if (i === "app")
|
|
7753
|
+
oe("7️⃣ Register module"), await Mh();
|
|
7754
|
+
else if (i === "engine")
|
|
7755
|
+
oe("7️⃣ Register module"), await ys(), await vs("datapos-engine-eu");
|
|
7756
|
+
else if (s === void 0)
|
|
7757
|
+
oe("7️⃣ Registration NOT required.");
|
|
7758
7758
|
else {
|
|
7759
|
-
oe("7️⃣
|
|
7760
|
-
const
|
|
7761
|
-
await vs(`datapos-engine-eu/${
|
|
7759
|
+
oe("7️⃣ Register module"), await ys();
|
|
7760
|
+
const a = t.id.slice(Math.max(0, t.id.lastIndexOf("-") + 1));
|
|
7761
|
+
await vs(`datapos-engine-eu/${s}/${a}`);
|
|
7762
7762
|
}
|
|
7763
|
-
await Ee("8️⃣
|
|
7764
|
-
} catch (
|
|
7765
|
-
console.error("❌ Error releasing project.",
|
|
7763
|
+
await Ee("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]), Fe(`Project version '${e.version}' released.`);
|
|
7764
|
+
} catch (e) {
|
|
7765
|
+
console.error("❌ Error releasing project.", e), process.exit(1);
|
|
7766
7766
|
}
|
|
7767
7767
|
}
|
|
7768
7768
|
function Rh(e) {
|
|
@@ -7953,7 +7953,7 @@ async function np() {
|
|
|
7953
7953
|
}
|
|
7954
7954
|
async function op() {
|
|
7955
7955
|
try {
|
|
7956
|
-
Le("Lint Code"), await Ee("1️⃣ Lint", "eslint", [
|
|
7956
|
+
Le("Lint Code"), await Ee("1️⃣ Lint", "eslint", []), Fe("Code linted.");
|
|
7957
7957
|
} catch (e) {
|
|
7958
7958
|
console.error("❌ Error linting code.", e), process.exit(1);
|
|
7959
7959
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Manage project operation.
|
|
3
3
|
*/
|
|
4
4
|
declare function buildProject(): Promise<void>;
|
|
5
|
-
declare function releaseProject(
|
|
5
|
+
declare function releaseProject(): Promise<void>;
|
|
6
6
|
declare function syncProjectWithGitHub(): Promise<void>;
|
|
7
7
|
declare function testProject(): void;
|
|
8
8
|
export { buildProject, releaseProject, syncProjectWithGitHub, testProject };
|
package/package.json
CHANGED