@dpuse/dpuse-development 0.3.549 → 0.3.550
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 +45 -14
- package/dist/dpuse-development.es.js +39 -22
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/src/actions/manageProject.d.ts +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/utilities/index.d.ts +3 -3
- package/eslint.config.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# DPUse Development
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@dpuse/dpuse-development)
|
|
4
3
|
[](./LICENSE)
|
|
4
|
+
[](https://www.npmjs.com/package/@dpuse/dpuse-development)
|
|
5
5
|
[](https://sonarcloud.io/summary/new_code?id=dpuse_dpuse-development)
|
|
6
6
|
|
|
7
7
|
<!-- SUMMARY_START -->
|
|
@@ -21,6 +21,35 @@ npm install --save-dev @dpuse/dpuse-development
|
|
|
21
21
|
|
|
22
22
|
> See the Data Positioning security documentation for additional initialization requirements.
|
|
23
23
|
|
|
24
|
+
## DPUse Projects
|
|
25
|
+
|
|
26
|
+
Entry/top level projects...
|
|
27
|
+
|
|
28
|
+
| Name | Description |
|
|
29
|
+
| ------ | ------------------------------- |
|
|
30
|
+
| app | Frontend or client application. |
|
|
31
|
+
| api | Backend API. |
|
|
32
|
+
| engine | |
|
|
33
|
+
| shared | |
|
|
34
|
+
|
|
35
|
+
Plugin project groupings...
|
|
36
|
+
|
|
37
|
+
| Name | Description |
|
|
38
|
+
| ---------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
39
|
+
| connectors | Connections... |
|
|
40
|
+
| contexts | Areas,Models... Dimensions, Entities, Secondary Measures... Hierarchies, Levels... Characteristics, Events, Primary Measures... |
|
|
41
|
+
| presenters | Presentations... |
|
|
42
|
+
| cookbooks | Recipes... |
|
|
43
|
+
| tools | |
|
|
44
|
+
|
|
45
|
+
Support projects...
|
|
46
|
+
|
|
47
|
+
| Name | Description |
|
|
48
|
+
| ----------- | ------------------------------------------------------------------------------------------ |
|
|
49
|
+
| development | Package of actions used to support the development process, not deployed in its own right. |
|
|
50
|
+
| kb | Knowledge content and deployment scripts. |
|
|
51
|
+
| resources | Sample data and deployment scripts. |
|
|
52
|
+
|
|
24
53
|
## Actions
|
|
25
54
|
|
|
26
55
|
The package implements the following actions:
|
|
@@ -97,29 +126,31 @@ The following table lists the top-level production and peer dependencies. All of
|
|
|
97
126
|
We use the `npm` packages [license-report](https://www.npmjs.com/package/license-report), [license-report-check](https://www.npmjs.com/package/license-report-check), [license-report-recursive](https://www.npmjs.com/package/license-report-recursive) and [license-downloader](https://www.npmjs.com/package/license-downloader) to identify all dependency licenses and include copies of them. We do not use any unlicensed dependencies in either production or development.
|
|
98
127
|
|
|
99
128
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
|
103
|
-
|[
|
|
104
|
-
|[acorn-
|
|
105
|
-
|[acorn](https://github.com/acornjs/acorn)|8.
|
|
106
|
-
|[
|
|
107
|
-
|[
|
|
108
|
-
|[
|
|
129
|
+
|
|
130
|
+
| Name | Version | License(s) | Document |
|
|
131
|
+
| ----------------------------------------------------------------------- | :-----: | ---------- | --------------------------------------------------------------------- |
|
|
132
|
+
| [@dpuse/dpuse-shared](https://github.com/data-positioning/dpuse-shared) | 0.3.675 | MIT | [LICENSE](licenses/downloads/@dpuse/dpuse-shared@0.3.675-LICENSE.txt) |
|
|
133
|
+
| [acorn-typescript](https://github.com/TyrealHu/acorn-typescript) | 1.4.13 | MIT | [LICENSE](licenses/downloads/acorn-typescript@1.4.13-LICENSE.txt) |
|
|
134
|
+
| [acorn-walk](https://github.com/acornjs/acorn) | 8.3.5 | MIT | [LICENSE](licenses/downloads/acorn-walk@8.3.5-LICENSE.txt) |
|
|
135
|
+
| [acorn](https://github.com/acornjs/acorn) | 8.17.0 | MIT | [LICENSE](licenses/downloads/acorn@8.17.0-LICENSE.txt) |
|
|
136
|
+
| [nanoid](https://github.com/ai/nanoid) | 5.1.15 | MIT | [LICENSE](licenses/downloads/nanoid@5.1.15-LICENSE.txt) |
|
|
137
|
+
| [typescript](https://github.com/microsoft/TypeScript) | 6.0.3 | Apache-2.0 | [LICENSE](licenses/downloads/typescript@6.0.3-LICENSE.txt) |
|
|
138
|
+
| [valibot](https://github.com/open-circle/valibot) | 1.4.1 | MIT | [LICENSE](licenses/downloads/valibot@1.4.1-LICENSE.txt) |
|
|
109
139
|
|
|
110
140
|
<!-- DEPENDENCY_LICENSES_END -->
|
|
111
141
|
|
|
112
142
|
<!-- DEPENDENCY_TREE_START -->
|
|
143
|
+
|
|
113
144
|
- **[@dpuse/dpuse-shared](https://github.com/data-positioning/dpuse-shared)** 0.3.675 — this month: 2026-06-23
|
|
114
145
|
- **[acorn-typescript](https://github.com/TyrealHu/acorn-typescript)** 1.4.13 — 29 months ago: 2024-01-03 ⚠️
|
|
115
|
-
|
|
146
|
+
- **[acorn](https://github.com/acornjs/acorn)** 8.17.0 — this month: 2026-06-11
|
|
116
147
|
- **[acorn-walk](https://github.com/acornjs/acorn)** 8.3.5 — 4 months ago: 2026-02-19
|
|
117
|
-
|
|
148
|
+
- **[acorn](https://github.com/acornjs/acorn)** 8.17.0 — this month: 2026-06-11
|
|
118
149
|
- **[acorn](https://github.com/acornjs/acorn)** 8.17.0 — this month: 2026-06-11
|
|
119
150
|
- **[nanoid](https://github.com/ai/nanoid)** 5.1.15 — this month: 2026-06-20
|
|
120
151
|
- **[valibot](https://github.com/open-circle/valibot)** 1.4.1 — 1 month ago: 2026-05-24
|
|
121
|
-
|
|
122
|
-
<!-- DEPENDENCY_TREE_END -->
|
|
152
|
+
- **[typescript](https://github.com/microsoft/TypeScript)** 6.0.3 — 2 months ago: 2026-04-16
|
|
153
|
+
<!-- DEPENDENCY_TREE_END -->
|
|
123
154
|
|
|
124
155
|
Insert link to other document for detailed explanation. Only show messages if issues arise.
|
|
125
156
|
|
|
@@ -5649,73 +5649,73 @@ var On = [
|
|
|
5649
5649
|
{
|
|
5650
5650
|
idPrefix: "dpuse-app",
|
|
5651
5651
|
typeId: "app",
|
|
5652
|
-
|
|
5652
|
+
publishedTo: void 0,
|
|
5653
5653
|
uploadGroupName: void 0
|
|
5654
5654
|
},
|
|
5655
5655
|
{
|
|
5656
5656
|
idPrefix: "dpuse-api",
|
|
5657
5657
|
typeId: "api",
|
|
5658
|
-
|
|
5658
|
+
publishedTo: void 0,
|
|
5659
5659
|
uploadGroupName: void 0
|
|
5660
5660
|
},
|
|
5661
5661
|
{
|
|
5662
5662
|
idPrefix: "dpuse-connector",
|
|
5663
5663
|
typeId: "connector",
|
|
5664
|
-
|
|
5664
|
+
publishedTo: "dpuse",
|
|
5665
5665
|
uploadGroupName: "connectors"
|
|
5666
5666
|
},
|
|
5667
5667
|
{
|
|
5668
5668
|
idPrefix: "dpuse-context",
|
|
5669
5669
|
typeId: "context",
|
|
5670
|
-
|
|
5670
|
+
publishedTo: "dpuse",
|
|
5671
5671
|
uploadGroupName: "contexts"
|
|
5672
5672
|
},
|
|
5673
5673
|
{
|
|
5674
5674
|
idPrefix: "dpuse-development",
|
|
5675
5675
|
typeId: "development",
|
|
5676
|
-
|
|
5676
|
+
publishedTo: "npm",
|
|
5677
5677
|
uploadGroupName: void 0
|
|
5678
5678
|
},
|
|
5679
5679
|
{
|
|
5680
5680
|
idPrefix: "dpuse-engine",
|
|
5681
5681
|
typeId: "engine",
|
|
5682
|
-
|
|
5682
|
+
publishedTo: "dpuse",
|
|
5683
5683
|
uploadGroupName: "engine"
|
|
5684
5684
|
},
|
|
5685
5685
|
{
|
|
5686
5686
|
idPrefix: "dpuse-kb",
|
|
5687
5687
|
typeId: "kb",
|
|
5688
|
-
|
|
5688
|
+
publishedTo: void 0,
|
|
5689
5689
|
uploadGroupName: void 0
|
|
5690
5690
|
},
|
|
5691
5691
|
{
|
|
5692
5692
|
idPrefix: "dpuse-presenter",
|
|
5693
5693
|
typeId: "presenter",
|
|
5694
|
-
|
|
5694
|
+
publishedTo: "dpuse",
|
|
5695
5695
|
uploadGroupName: "presenters"
|
|
5696
5696
|
},
|
|
5697
5697
|
{
|
|
5698
|
-
idPrefix: "dpuse-
|
|
5699
|
-
typeId: "
|
|
5700
|
-
|
|
5701
|
-
uploadGroupName: "
|
|
5698
|
+
idPrefix: "dpuse-cookbook",
|
|
5699
|
+
typeId: "cookbook",
|
|
5700
|
+
publishedTo: "dpuse",
|
|
5701
|
+
uploadGroupName: "cookbooks"
|
|
5702
5702
|
},
|
|
5703
5703
|
{
|
|
5704
5704
|
idPrefix: "dpuse-resources",
|
|
5705
5705
|
typeId: "resources",
|
|
5706
|
-
|
|
5706
|
+
publishedTo: void 0,
|
|
5707
5707
|
uploadGroupName: void 0
|
|
5708
5708
|
},
|
|
5709
5709
|
{
|
|
5710
5710
|
idPrefix: "dpuse-shared",
|
|
5711
5711
|
typeId: "shared",
|
|
5712
|
-
|
|
5712
|
+
publishedTo: "npm",
|
|
5713
5713
|
uploadGroupName: void 0
|
|
5714
5714
|
},
|
|
5715
5715
|
{
|
|
5716
5716
|
idPrefix: "dpuse-tool",
|
|
5717
5717
|
typeId: "tool",
|
|
5718
|
-
|
|
5718
|
+
publishedTo: "npm",
|
|
5719
5719
|
uploadGroupName: "tools"
|
|
5720
5720
|
}
|
|
5721
5721
|
], kn = r(i);
|
|
@@ -5871,7 +5871,7 @@ async function Gn() {
|
|
|
5871
5871
|
try {
|
|
5872
5872
|
G("Check configuration files.");
|
|
5873
5873
|
let e = zn((await W("config.json")).id), t = n.dirname(o(import.meta.url));
|
|
5874
|
-
await Kn(t, "../", ".editorconfig"), await Kn(t, "../", ".gitattributes"), await Kn(t, "../", e.
|
|
5874
|
+
await Kn(t, "../", ".editorconfig"), await Kn(t, "../", ".gitattributes"), await Kn(t, "../", e.publishedTo === "npm" ? ".gitignore_published" : ".gitignore_unpublished"), await Kn(t, "../", ".markdownlint.json"), await Kn(t, "../", "LICENSE"), K("Configuration files checked..");
|
|
5875
5875
|
} catch (e) {
|
|
5876
5876
|
console.error("❌ Error checking configuration files.", e), process.exit(1);
|
|
5877
5877
|
}
|
|
@@ -6687,7 +6687,7 @@ async function fi() {
|
|
|
6687
6687
|
try {
|
|
6688
6688
|
G("Release Project");
|
|
6689
6689
|
let e = await W("package.json"), t = await W("config.json");
|
|
6690
|
-
await
|
|
6690
|
+
await Si("1️⃣ ", e);
|
|
6691
6691
|
let n = zn(t.id);
|
|
6692
6692
|
switch (n.typeId) {
|
|
6693
6693
|
case "connector":
|
|
@@ -6717,7 +6717,7 @@ async function fi() {
|
|
|
6717
6717
|
let r = t.id.split("-").slice(2).join("-");
|
|
6718
6718
|
await $r(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Qr(t);
|
|
6719
6719
|
}
|
|
6720
|
-
if (n.
|
|
6720
|
+
if (n.publishedTo === "npm") {
|
|
6721
6721
|
let e = ".npmrc";
|
|
6722
6722
|
try {
|
|
6723
6723
|
await Rn(e, `registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await Nn("8️⃣ Publish to npm", "npm", [
|
|
@@ -6767,10 +6767,27 @@ async function vi(e, t, n, r) {
|
|
|
6767
6767
|
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 Ln("config.json", t), t;
|
|
6768
6768
|
}
|
|
6769
6769
|
async function yi() {
|
|
6770
|
+
try {
|
|
6771
|
+
G("Publish Project");
|
|
6772
|
+
let e = await W("package.json"), t = await W("config.json"), n = zn(t.id);
|
|
6773
|
+
if (n.typeId === "app") q("1️⃣ Register module"), await Xr();
|
|
6774
|
+
else if (n.typeId === "engine") q("1️⃣ Register module"), await $r(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Qr(t);
|
|
6775
|
+
else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required.");
|
|
6776
|
+
else {
|
|
6777
|
+
q("1️⃣ Register module");
|
|
6778
|
+
let r = t.id.split("-").slice(2).join("-");
|
|
6779
|
+
await $r(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Qr(t);
|
|
6780
|
+
}
|
|
6781
|
+
K(`Project version '${e.version ?? "unknown"}' published.`);
|
|
6782
|
+
} catch (e) {
|
|
6783
|
+
console.error("❌ Error publishing project.", e), process.exit(1);
|
|
6784
|
+
}
|
|
6785
|
+
}
|
|
6786
|
+
async function bi() {
|
|
6770
6787
|
try {
|
|
6771
6788
|
G("Synchronise Project with GitHub");
|
|
6772
6789
|
let e = await W("package.json"), t = await W("config.json");
|
|
6773
|
-
switch (await
|
|
6790
|
+
switch (await Si("1️⃣ ", e), zn(t.id).typeId) {
|
|
6774
6791
|
case "connector":
|
|
6775
6792
|
await mi("2️⃣ ", e);
|
|
6776
6793
|
break;
|
|
@@ -6795,14 +6812,14 @@ async function yi() {
|
|
|
6795
6812
|
console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
|
|
6796
6813
|
}
|
|
6797
6814
|
}
|
|
6798
|
-
function
|
|
6815
|
+
function xi() {
|
|
6799
6816
|
try {
|
|
6800
6817
|
G("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
6801
6818
|
} catch (e) {
|
|
6802
6819
|
console.error("❌ Error testing project.", e), process.exit(1);
|
|
6803
6820
|
}
|
|
6804
6821
|
}
|
|
6805
|
-
async function
|
|
6822
|
+
async function Si(e, t, n = "./") {
|
|
6806
6823
|
if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
6807
6824
|
else {
|
|
6808
6825
|
let e = t.version, n = t.version.split(".");
|
|
@@ -6811,6 +6828,6 @@ async function xi(e, t, n = "./") {
|
|
|
6811
6828
|
await Ln(`${n}package.json`, t);
|
|
6812
6829
|
}
|
|
6813
6830
|
//#endregion
|
|
6814
|
-
export { Wn as auditDependencies, di as buildProject, Gn as checkConfigFiles, qn as checkDependencies, Qn as documentDependencies, qr as documentOperations, Jr as formatCode, Yr as lintCode, fi as releaseProject,
|
|
6831
|
+
export { Wn as auditDependencies, di as buildProject, Gn as checkConfigFiles, qn as checkDependencies, Qn as documentDependencies, qr as documentOperations, Jr as formatCode, Yr as lintCode, yi as publishProject, fi as releaseProject, bi as syncProjectWithGitHub, xi as testProject, Zr as uploadDirectoryToR2 };
|
|
6815
6832
|
|
|
6816
6833
|
//# sourceMappingURL=dpuse-development.es.js.map
|