@datapos/datapos-development 0.3.246 → 0.3.250
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Data Positioning Development Library
|
|
2
2
|
|
|
3
3
|
[](https://sonarcloud.io/summary/new_code?id=data-positioning_datapos-development)
|
|
4
|
-
<span><!-- OWASP_BADGES_START -->[](https://data-positioning.github.io/
|
|
4
|
+
<span><!-- OWASP_BADGES_START -->[](https://data-positioning.github.io/datapos-development/dependency-check-reports/dependency-check-report.html)<!-- OWASP_BADGES_END --></span>
|
|
5
5
|
[](https://www.npmjs.com/package/@datapos/datapos-development)
|
|
6
6
|
[](./LICENSE)
|
|
7
7
|
|
|
@@ -7700,7 +7700,6 @@ async function Mh() {
|
|
|
7700
7700
|
if (!i.ok) throw new Error(await i.text());
|
|
7701
7701
|
}
|
|
7702
7702
|
async function ys() {
|
|
7703
|
-
console.info("🚀 Uploading module configuration....");
|
|
7704
7703
|
const e = await Ce("config.json"), t = e.id, i = {
|
|
7705
7704
|
body: JSON.stringify(e),
|
|
7706
7705
|
headers: { "Content-Type": "application/json" },
|
|
@@ -7728,41 +7727,41 @@ async function Yh() {
|
|
|
7728
7727
|
console.error("❌ Error building project.", e), process.exit(1);
|
|
7729
7728
|
}
|
|
7730
7729
|
}
|
|
7731
|
-
async function ep(
|
|
7730
|
+
async function ep() {
|
|
7732
7731
|
try {
|
|
7733
7732
|
Le("Release Project");
|
|
7734
|
-
const
|
|
7735
|
-
await Pr("1️⃣",
|
|
7736
|
-
const
|
|
7737
|
-
switch (
|
|
7733
|
+
const e = await Ce("package.json"), t = await Ce("config.json");
|
|
7734
|
+
await Pr("1️⃣", e);
|
|
7735
|
+
const i = Rh(e);
|
|
7736
|
+
switch (i) {
|
|
7738
7737
|
case "connector":
|
|
7739
|
-
await zh("2️⃣",
|
|
7738
|
+
await zh("2️⃣", e);
|
|
7740
7739
|
break;
|
|
7741
7740
|
case "context":
|
|
7742
|
-
await Vh("2️⃣",
|
|
7741
|
+
await Vh("2️⃣", e);
|
|
7743
7742
|
break;
|
|
7744
7743
|
case "presenter":
|
|
7745
|
-
await jh("2️⃣",
|
|
7744
|
+
await jh("2️⃣", e);
|
|
7746
7745
|
break;
|
|
7747
7746
|
default:
|
|
7748
|
-
await Dh("2️⃣",
|
|
7747
|
+
await Dh("2️⃣", e);
|
|
7749
7748
|
}
|
|
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 (
|
|
7749
|
+
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"]);
|
|
7750
|
+
const s = Bh(i);
|
|
7751
|
+
if (i === "app")
|
|
7753
7752
|
oe("7️⃣ Register module"), await Mh();
|
|
7754
|
-
else if (
|
|
7753
|
+
else if (i === "engine")
|
|
7755
7754
|
oe("7️⃣ Register module"), await ys(), await vs("datapos-engine-eu");
|
|
7756
|
-
else if (
|
|
7757
|
-
oe("7️⃣ Registration
|
|
7755
|
+
else if (s === void 0)
|
|
7756
|
+
oe("7️⃣ Registration NOT required.");
|
|
7758
7757
|
else {
|
|
7759
7758
|
oe("7️⃣ Register module"), await ys();
|
|
7760
|
-
const
|
|
7761
|
-
await vs(`datapos-engine-eu/${
|
|
7759
|
+
const a = t.id.slice(Math.max(0, t.id.lastIndexOf("-") + 1));
|
|
7760
|
+
await vs(`datapos-engine-eu/${s}/${a}`);
|
|
7762
7761
|
}
|
|
7763
|
-
await Ee("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]), Fe(`Project version '${
|
|
7764
|
-
} catch (
|
|
7765
|
-
console.error("❌ Error releasing project.",
|
|
7762
|
+
await Ee("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]), Fe(`Project version '${e.version}' released.`);
|
|
7763
|
+
} catch (e) {
|
|
7764
|
+
console.error("❌ Error releasing project.", e), process.exit(1);
|
|
7766
7765
|
}
|
|
7767
7766
|
}
|
|
7768
7767
|
function Rh(e) {
|
|
@@ -7953,7 +7952,7 @@ async function np() {
|
|
|
7953
7952
|
}
|
|
7954
7953
|
async function op() {
|
|
7955
7954
|
try {
|
|
7956
|
-
Le("Lint Code"), await Ee("1️⃣ Lint", "eslint", [
|
|
7955
|
+
Le("Lint Code"), await Ee("1️⃣ Lint", "eslint", []), Fe("Code linted.");
|
|
7957
7956
|
} catch (e) {
|
|
7958
7957
|
console.error("❌ Error linting code.", e), process.exit(1);
|
|
7959
7958
|
}
|
|
@@ -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