@jskit-ai/feature-server-generator 0.1.10 → 0.1.12
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/package.descriptor.mjs +23 -5
- package/package.json +1 -1
- package/test/packageDescriptor.test.js +28 -0
package/package.descriptor.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default Object.freeze({
|
|
2
2
|
packageVersion: 1,
|
|
3
3
|
packageId: "@jskit-ai/feature-server-generator",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.12",
|
|
5
5
|
kind: "generator",
|
|
6
6
|
description: "Scaffold substantial non-CRUD server feature packages with provider, actions, service, and optional persistence seams.",
|
|
7
7
|
options: {
|
|
@@ -153,10 +153,28 @@ export default Object.freeze({
|
|
|
153
153
|
mutations: {
|
|
154
154
|
dependencies: {
|
|
155
155
|
runtime: {
|
|
156
|
-
"@jskit-ai/database-runtime":
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
"@jskit-ai/database-runtime": {
|
|
157
|
+
version: "0.1.69",
|
|
158
|
+
when: {
|
|
159
|
+
option: "mode",
|
|
160
|
+
notEquals: "orchestrator"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"@jskit-ai/database-runtime-mysql": {
|
|
164
|
+
version: "0.1.68",
|
|
165
|
+
when: {
|
|
166
|
+
option: "mode",
|
|
167
|
+
notEquals: "orchestrator"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"@jskit-ai/json-rest-api-core": {
|
|
171
|
+
version: "0.1.14",
|
|
172
|
+
when: {
|
|
173
|
+
option: "mode",
|
|
174
|
+
equals: "json-rest"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"@jskit-ai/kernel": "0.1.70",
|
|
160
178
|
"json-rest-schema": "1.x.x",
|
|
161
179
|
"@local/${option:feature-name|kebab}": "file:packages/${option:feature-name|kebab}"
|
|
162
180
|
},
|
package/package.json
CHANGED
|
@@ -51,3 +51,31 @@ test("feature-server-generator routes mode-specific files through mutation when
|
|
|
51
51
|
|
|
52
52
|
assert.equal(actionIdsTemplate, undefined);
|
|
53
53
|
});
|
|
54
|
+
|
|
55
|
+
test("feature-server-generator scopes persistence dependencies to persistent modes", () => {
|
|
56
|
+
const runtimeDependencies = descriptor.mutations?.dependencies?.runtime || {};
|
|
57
|
+
|
|
58
|
+
assert.deepEqual(runtimeDependencies["@jskit-ai/json-rest-api-core"], {
|
|
59
|
+
version: "0.1.14",
|
|
60
|
+
when: {
|
|
61
|
+
option: "mode",
|
|
62
|
+
equals: "json-rest"
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
assert.deepEqual(runtimeDependencies["@jskit-ai/database-runtime"], {
|
|
66
|
+
version: "0.1.69",
|
|
67
|
+
when: {
|
|
68
|
+
option: "mode",
|
|
69
|
+
notEquals: "orchestrator"
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
assert.deepEqual(runtimeDependencies["@jskit-ai/database-runtime-mysql"], {
|
|
73
|
+
version: "0.1.68",
|
|
74
|
+
when: {
|
|
75
|
+
option: "mode",
|
|
76
|
+
notEquals: "orchestrator"
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
assert.equal(runtimeDependencies["@jskit-ai/kernel"], "0.1.69");
|
|
80
|
+
assert.equal(runtimeDependencies["json-rest-schema"], "1.x.x");
|
|
81
|
+
});
|