@conformetry/nx 0.0.9 → 0.0.11
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/CHANGELOG.md +18 -0
- package/README.md +8 -8
- package/dist/{bootstrap.utilities-BP1s_CA1.js → bootstrap.utilities-B2M9tLjN.js} +13 -13
- package/dist/{plugin-context.utilities-D5mvbdZJ.js → plugin-context.utilities-CjWhPqvT.js} +108 -105
- package/dist/src/executors/validate/executor.js +3 -3
- package/dist/src/generators/sync/generator.js +9 -9
- package/dist/src/index.js +4 -4
- package/dist/src/main.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 0.0.11 (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated conformetry-configuration to 0.0.12
|
|
6
|
+
- Updated conformetry-generation to 0.0.12
|
|
7
|
+
- Updated conformetry-validation to 0.0.11
|
|
8
|
+
- Updated conformetry-output to 0.0.11
|
|
9
|
+
|
|
10
|
+
## 0.0.10 (2026-10-08)
|
|
11
|
+
|
|
12
|
+
### 🧱 Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated conformetry-configuration to 0.0.11
|
|
15
|
+
- Updated conformetry-generation to 0.0.11
|
|
16
|
+
- Updated conformetry-validation to 0.0.10
|
|
17
|
+
- Updated conformetry-output to 0.0.10
|
|
18
|
+
|
|
1
19
|
## 0.0.9 (2026-10-08)
|
|
2
20
|
|
|
3
21
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -717,13 +717,13 @@ graph LR
|
|
|
717
717
|
### Project
|
|
718
718
|
|
|
719
719
|

|
|
720
|
-

|
|
721
721
|

|
|
722
722
|

|
|
723
723
|
|
|
724
724
|
### Measured Targets
|
|
725
725
|
|
|
726
|
-

|
|
727
727
|
|
|
728
728
|
### TypeScript
|
|
729
729
|
|
|
@@ -905,16 +905,16 @@ graph LR
|
|
|
905
905
|
### Markdown
|
|
906
906
|
|
|
907
907
|

|
|
908
|
-

|
|
909
909
|

|
|
910
|
-

|
|
911
|
+

|
|
912
912
|

|
|
913
913
|

|
|
914
914
|

|
|
915
|
-

|
|
916
|
+

|
|
917
|
+

|
|
918
918
|

|
|
919
919
|

|
|
920
920
|

|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { _ as e, d as t, g as n, i as r, n as i, t as a } from "./plugin-context.utilities-
|
|
1
|
+
import { _ as e, d as t, g as n, i as r, n as i, t as a } from "./plugin-context.utilities-CjWhPqvT.js";
|
|
2
2
|
import { existsSync as o, lstatSync as s, mkdirSync as c, readFileSync as l, realpathSync as u, rmSync as d, symlinkSync as f, writeFileSync as p } from "node:fs";
|
|
3
3
|
import m from "node:path";
|
|
4
4
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/generator/bootstrap.utilities.ts
|
|
5
|
-
async function
|
|
5
|
+
async function bootstrapPlugin(t) {
|
|
6
6
|
let s = await a(), c = await i(), l = await r(), u = await s.emitPlugin({
|
|
7
7
|
configurationPath: c.resolveConfigurationPath({
|
|
8
8
|
exists: (e) => o(m.resolve(t, e)),
|
|
9
|
-
nxConfiguration:
|
|
9
|
+
nxConfiguration: readNxConfiguration(t)
|
|
10
10
|
}),
|
|
11
11
|
outputPath: n,
|
|
12
12
|
packageName: e,
|
|
13
13
|
projects: l.listWorkspaceProjects(t)
|
|
14
14
|
});
|
|
15
|
-
return
|
|
15
|
+
return writePlugin({
|
|
16
16
|
files: u,
|
|
17
17
|
workspaceRoot: t
|
|
18
|
-
}),
|
|
18
|
+
}), linkPlugin(t), u;
|
|
19
19
|
}
|
|
20
|
-
async function
|
|
20
|
+
async function runBootstrapCli(e) {
|
|
21
21
|
try {
|
|
22
|
-
let t = await
|
|
22
|
+
let t = await bootstrapPlugin(e);
|
|
23
23
|
console.info(`👔 Emitted the conformetry generator plugin to ${n}`, { count: t.length });
|
|
24
24
|
} catch (e) {
|
|
25
25
|
console.warn("👔 Skipped emitting the conformetry generator plugin"), console.warn(e instanceof Error ? e.message : e);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function leadsTo(e) {
|
|
29
29
|
try {
|
|
30
30
|
return u(e.linkPath) === u(e.outputPath);
|
|
31
31
|
} catch {
|
|
32
32
|
return !o(e.linkPath);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function linkPlugin(t) {
|
|
36
36
|
let r = m.resolve(t, "node_modules", e), i = m.resolve(t, n);
|
|
37
|
-
if (c(m.dirname(r), { recursive: !0 }), s(r, { throwIfNoEntry: !1 }) !== void 0 && !
|
|
37
|
+
if (c(m.dirname(r), { recursive: !0 }), s(r, { throwIfNoEntry: !1 }) !== void 0 && !leadsTo({
|
|
38
38
|
linkPath: r,
|
|
39
39
|
outputPath: i
|
|
40
40
|
})) throw Error(`node_modules/${e} is an installed package, not a link to ${n}. Rename the emitted plugin via the sync generator's packageName option.`);
|
|
@@ -43,11 +43,11 @@ function v(t) {
|
|
|
43
43
|
recursive: !0
|
|
44
44
|
}), f(m.relative(m.dirname(r), i), r, "dir");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function readNxConfiguration(e) {
|
|
47
47
|
let n = m.resolve(e, t);
|
|
48
48
|
if (o(n)) return JSON.parse(l(n, "utf8"));
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function writePlugin(e) {
|
|
51
51
|
d(m.resolve(e.workspaceRoot, n, "src"), {
|
|
52
52
|
force: !0,
|
|
53
53
|
recursive: !0
|
|
@@ -58,4 +58,4 @@ function b(e) {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
export {
|
|
61
|
+
export { runBootstrapCli as n, bootstrapPlugin as t };
|
|
@@ -9,8 +9,11 @@ import { GenerationModule as h, GenerationService as g } from "@conformetry/gene
|
|
|
9
9
|
import { ReportingModule as _, ReportingService as v } from "@conformetry/output";
|
|
10
10
|
import { ValidationModule as y, ValidationService as b } from "@conformetry/validation";
|
|
11
11
|
import { formatFiles as ee, getProjects as te, readProjectConfiguration as ne } from "@nx/devkit";
|
|
12
|
-
//#region
|
|
13
|
-
var re =
|
|
12
|
+
//#region \0rolldown/runtime.js
|
|
13
|
+
var re = Object.defineProperty, __name = (e, t) => re(e, "name", {
|
|
14
|
+
value: t,
|
|
15
|
+
configurable: !0
|
|
16
|
+
}), ie = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, x = /^([A-Za-z]+)/, ae = /* @__PURE__ */ new Set([
|
|
14
17
|
"built",
|
|
15
18
|
"cut",
|
|
16
19
|
"found",
|
|
@@ -28,7 +31,7 @@ var re = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
28
31
|
"split",
|
|
29
32
|
"took",
|
|
30
33
|
"wrote"
|
|
31
|
-
]),
|
|
34
|
+
]), S = /* @__PURE__ */ new Set([
|
|
32
35
|
"CommandFactory",
|
|
33
36
|
"ExceptionHandler",
|
|
34
37
|
"GraphQLModule",
|
|
@@ -41,12 +44,12 @@ var re = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
41
44
|
]);
|
|
42
45
|
//#endregion
|
|
43
46
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorateMetadata.js
|
|
44
|
-
function
|
|
47
|
+
function __decorateMetadata(e, t) {
|
|
45
48
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
46
49
|
}
|
|
47
50
|
//#endregion
|
|
48
51
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
|
|
49
|
-
function
|
|
52
|
+
function __decorate(e, t, n, r) {
|
|
50
53
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
51
54
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
52
55
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -54,7 +57,7 @@ function S(e, t, n, r) {
|
|
|
54
57
|
}
|
|
55
58
|
//#endregion
|
|
56
59
|
//#region packages/logging/src/modules/logger/logger.service.ts
|
|
57
|
-
var C, w = class extends t {
|
|
60
|
+
var C, w = class LoggerService extends t {
|
|
58
61
|
static {
|
|
59
62
|
C = this;
|
|
60
63
|
}
|
|
@@ -106,7 +109,7 @@ var C, w = class extends t {
|
|
|
106
109
|
getConventionalMessageViolation(e) {
|
|
107
110
|
let t = e.emoji, n = e.text;
|
|
108
111
|
if (t === void 0) return `Log message must start with an emoji naming its subject, then a verb: "${n}"`;
|
|
109
|
-
let r =
|
|
112
|
+
let r = x.exec(n)?.[1];
|
|
110
113
|
if (r === void 0 || !this.isConventionalVerb(r)) return `Log message must begin with a verb in present progressive or past tense, got "${r ?? ""}": "${t} ${n}"`;
|
|
111
114
|
}
|
|
112
115
|
isConventionalVerb(e) {
|
|
@@ -114,7 +117,7 @@ var C, w = class extends t {
|
|
|
114
117
|
return t.endsWith("ing") || t.endsWith("ed") || ae.has(t);
|
|
115
118
|
}
|
|
116
119
|
parseMessage(e) {
|
|
117
|
-
let t = String(e), n =
|
|
120
|
+
let t = String(e), n = ie.exec(t), r = n?.[1];
|
|
118
121
|
return r === void 0 ? {
|
|
119
122
|
emoji: void 0,
|
|
120
123
|
text: t
|
|
@@ -124,7 +127,7 @@ var C, w = class extends t {
|
|
|
124
127
|
};
|
|
125
128
|
}
|
|
126
129
|
shouldSkipConventionalMessageValidation(e) {
|
|
127
|
-
return e !== void 0 &&
|
|
130
|
+
return e !== void 0 && S.has(e);
|
|
128
131
|
}
|
|
129
132
|
static get root() {
|
|
130
133
|
return C.rootLogger ??= C.createRootLogger(), C.rootLogger;
|
|
@@ -190,11 +193,11 @@ var C, w = class extends t {
|
|
|
190
193
|
}), r.text);
|
|
191
194
|
}
|
|
192
195
|
};
|
|
193
|
-
w = C =
|
|
196
|
+
w = C = __decorate([r({ scope: a.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], w);
|
|
194
197
|
//#endregion
|
|
195
198
|
//#region packages/logging/src/modules/logger/logger.module.ts
|
|
196
|
-
var T = class {};
|
|
197
|
-
T =
|
|
199
|
+
var T = class LoggerModule {};
|
|
200
|
+
T = __decorate([n(), i({
|
|
198
201
|
controllers: [],
|
|
199
202
|
exports: [w],
|
|
200
203
|
imports: [],
|
|
@@ -202,7 +205,7 @@ T = S([n(), i({
|
|
|
202
205
|
})], T);
|
|
203
206
|
//#endregion
|
|
204
207
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.service.ts
|
|
205
|
-
var E = class {
|
|
208
|
+
var E = class ScopeService {
|
|
206
209
|
configurationService;
|
|
207
210
|
constructor(e) {
|
|
208
211
|
this.configurationService = e;
|
|
@@ -234,11 +237,11 @@ var E = class {
|
|
|
234
237
|
}))).map((e) => e.name).toSorted((e, t) => e.localeCompare(t));
|
|
235
238
|
}
|
|
236
239
|
};
|
|
237
|
-
E =
|
|
240
|
+
E = __decorate([r(), __decorateMetadata("design:paramtypes", [m === void 0 ? Object : m])], E);
|
|
238
241
|
//#endregion
|
|
239
242
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.module.ts
|
|
240
|
-
var D = class {};
|
|
241
|
-
D =
|
|
243
|
+
var D = class ScopeModule {};
|
|
244
|
+
D = __decorate([i({
|
|
242
245
|
controllers: [],
|
|
243
246
|
exports: [E],
|
|
244
247
|
imports: [p],
|
|
@@ -246,7 +249,7 @@ D = S([i({
|
|
|
246
249
|
})], D);
|
|
247
250
|
//#endregion
|
|
248
251
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.constants.ts
|
|
249
|
-
var O = "project",
|
|
252
|
+
var O = "project", oe = "module", se = "type", ce = "directory", k = ".conformetry/nx-generators", le = "// Generated from the conformetry configuration. Do not edit.", ue = "The conformetry generator plugin is out of sync with the conformetry configuration.", A = "conformetry", j = "node_modules/@nx/devkit/src/generators/generators-schema.json", M = class GeneratorService {
|
|
250
253
|
configurationService;
|
|
251
254
|
scopeService;
|
|
252
255
|
constructor(e, t) {
|
|
@@ -254,7 +257,7 @@ var O = "project", se = "module", k = "type", A = "directory", j = ".conformetry
|
|
|
254
257
|
}
|
|
255
258
|
buildGeneratorModule(e) {
|
|
256
259
|
return [
|
|
257
|
-
|
|
260
|
+
le,
|
|
258
261
|
"",
|
|
259
262
|
"import { runConformetryGenerator } from \"@conformetry/nx\";",
|
|
260
263
|
"",
|
|
@@ -284,7 +287,7 @@ var O = "project", se = "module", k = "type", A = "directory", j = ".conformetry
|
|
|
284
287
|
schema: `./src/schemas/${n.name}.json`
|
|
285
288
|
};
|
|
286
289
|
return this.stringify({
|
|
287
|
-
$schema: d.relative(e.outputPath,
|
|
290
|
+
$schema: d.relative(e.outputPath, j).split(d.sep).join("/"),
|
|
288
291
|
generators: t
|
|
289
292
|
});
|
|
290
293
|
}
|
|
@@ -366,23 +369,23 @@ var O = "project", se = "module", k = "type", A = "directory", j = ".conformetry
|
|
|
366
369
|
];
|
|
367
370
|
}
|
|
368
371
|
};
|
|
369
|
-
|
|
372
|
+
M = __decorate([r(), __decorateMetadata("design:paramtypes", [m === void 0 ? Object : m, E === void 0 ? Object : E])], M);
|
|
370
373
|
//#endregion
|
|
371
374
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/generator/generator.module.ts
|
|
372
|
-
var
|
|
373
|
-
|
|
375
|
+
var N = class GeneratorModule {};
|
|
376
|
+
N = __decorate([i({
|
|
374
377
|
controllers: [],
|
|
375
378
|
exports: [
|
|
376
379
|
p,
|
|
377
|
-
|
|
380
|
+
M,
|
|
378
381
|
D
|
|
379
382
|
],
|
|
380
383
|
imports: [p, D],
|
|
381
|
-
providers: [
|
|
382
|
-
})],
|
|
384
|
+
providers: [M]
|
|
385
|
+
})], N);
|
|
383
386
|
//#endregion
|
|
384
387
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/adapter/adapter.constants.ts
|
|
385
|
-
var
|
|
388
|
+
var P = "utf8", F = class AdapterService {
|
|
386
389
|
constructor() {}
|
|
387
390
|
async listDirectory(e) {
|
|
388
391
|
let t = this.resolveTreePath(e);
|
|
@@ -398,7 +401,7 @@ var de = "utf8", F = class {
|
|
|
398
401
|
let t = this.resolveTreePath({
|
|
399
402
|
directoryPath: e.filePath,
|
|
400
403
|
workspaceRoot: e.workspaceRoot
|
|
401
|
-
}), n = t === void 0 ? null : e.tree.read(t,
|
|
404
|
+
}), n = t === void 0 ? null : e.tree.read(t, P);
|
|
402
405
|
return await Promise.resolve(n ?? o.readFileSync(e.filePath, "utf8"));
|
|
403
406
|
}
|
|
404
407
|
resolveTreePath(e) {
|
|
@@ -435,11 +438,11 @@ var de = "utf8", F = class {
|
|
|
435
438
|
};
|
|
436
439
|
}
|
|
437
440
|
};
|
|
438
|
-
F =
|
|
441
|
+
F = __decorate([r(), __decorateMetadata("design:paramtypes", [])], F);
|
|
439
442
|
//#endregion
|
|
440
443
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/adapter/adapter.module.ts
|
|
441
|
-
var I = class {};
|
|
442
|
-
I =
|
|
444
|
+
var I = class AdapterModule {};
|
|
445
|
+
I = __decorate([i({
|
|
443
446
|
controllers: [],
|
|
444
447
|
exports: [F],
|
|
445
448
|
imports: [],
|
|
@@ -447,7 +450,7 @@ I = S([i({
|
|
|
447
450
|
})], I);
|
|
448
451
|
//#endregion
|
|
449
452
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts
|
|
450
|
-
var L = class {
|
|
453
|
+
var L = class InstancesService {
|
|
451
454
|
configurationService;
|
|
452
455
|
scopeService;
|
|
453
456
|
constructor(e, t) {
|
|
@@ -481,11 +484,11 @@ var L = class {
|
|
|
481
484
|
});
|
|
482
485
|
}
|
|
483
486
|
};
|
|
484
|
-
L =
|
|
487
|
+
L = __decorate([r(), __decorateMetadata("design:paramtypes", [m === void 0 ? Object : m, E === void 0 ? Object : E])], L);
|
|
485
488
|
//#endregion
|
|
486
489
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.module.ts
|
|
487
|
-
var R = class {};
|
|
488
|
-
R =
|
|
490
|
+
var R = class InstancesModule {};
|
|
491
|
+
R = __decorate([i({
|
|
489
492
|
controllers: [],
|
|
490
493
|
exports: [L, D],
|
|
491
494
|
imports: [p, D],
|
|
@@ -493,7 +496,7 @@ R = S([i({
|
|
|
493
496
|
})], R);
|
|
494
497
|
//#endregion
|
|
495
498
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/options/options.constants.ts
|
|
496
|
-
var
|
|
499
|
+
var z = "@conformetry/nx", B = [
|
|
497
500
|
"conformetry.config.ts",
|
|
498
501
|
"conformetry.config.mts",
|
|
499
502
|
"conformetry.config.cts",
|
|
@@ -510,7 +513,7 @@ var fe = "@conformetry/nx", z = [
|
|
|
510
513
|
"conformetryrc.ts",
|
|
511
514
|
"conformetryrc.js",
|
|
512
515
|
"conformetryrc.json"
|
|
513
|
-
],
|
|
516
|
+
], V = "nx.json", H = "conformetry-validate", de = ["configurationPath", "validateTargetName"], U = class OptionsService {
|
|
514
517
|
constructor() {}
|
|
515
518
|
isUnknownArray(e) {
|
|
516
519
|
return Array.isArray(e);
|
|
@@ -532,25 +535,25 @@ var fe = "@conformetry/nx", z = [
|
|
|
532
535
|
return typeof t == "string" && t !== "" ? t : void 0;
|
|
533
536
|
}
|
|
534
537
|
resolveConfigurationPath(e) {
|
|
535
|
-
return this.readRegisteredConfigurationPath(e.nxConfiguration) ??
|
|
538
|
+
return this.readRegisteredConfigurationPath(e.nxConfiguration) ?? B.find((t) => e.exists(t)) ?? B[0];
|
|
536
539
|
}
|
|
537
540
|
resolveGeneratorInputs(e) {
|
|
538
541
|
if (typeof e != "object" || !e) return {};
|
|
539
542
|
let t = {};
|
|
540
|
-
for (let [n, r] of Object.entries({ ...e }))
|
|
543
|
+
for (let [n, r] of Object.entries({ ...e })) de.includes(n) || typeof r != "string" || (t[n] = r);
|
|
541
544
|
return t;
|
|
542
545
|
}
|
|
543
546
|
resolvePluginOptions(e) {
|
|
544
547
|
if (typeof e != "object" || !e) return {
|
|
545
|
-
configurationPath:
|
|
546
|
-
validateTargetName:
|
|
548
|
+
configurationPath: B[0],
|
|
549
|
+
validateTargetName: H
|
|
547
550
|
};
|
|
548
551
|
let t = { ...e };
|
|
549
552
|
return {
|
|
550
553
|
configurationPath: this.readString({
|
|
551
554
|
key: "configurationPath",
|
|
552
555
|
options: t
|
|
553
|
-
}) ??
|
|
556
|
+
}) ?? B[0],
|
|
554
557
|
validateTargetName: this.readString({
|
|
555
558
|
key: "validateTargetName",
|
|
556
559
|
options: t
|
|
@@ -558,19 +561,19 @@ var fe = "@conformetry/nx", z = [
|
|
|
558
561
|
};
|
|
559
562
|
}
|
|
560
563
|
};
|
|
561
|
-
|
|
564
|
+
U = __decorate([r(), __decorateMetadata("design:paramtypes", [])], U);
|
|
562
565
|
//#endregion
|
|
563
566
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/options/options.module.ts
|
|
564
|
-
var
|
|
565
|
-
|
|
567
|
+
var W = class OptionsModule {};
|
|
568
|
+
W = __decorate([i({
|
|
566
569
|
controllers: [],
|
|
567
|
-
exports: [
|
|
570
|
+
exports: [U],
|
|
568
571
|
imports: [],
|
|
569
|
-
providers: [
|
|
570
|
-
})],
|
|
572
|
+
providers: [U]
|
|
573
|
+
})], W);
|
|
571
574
|
//#endregion
|
|
572
575
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts
|
|
573
|
-
var
|
|
576
|
+
var G = class PathsService {
|
|
574
577
|
instancesService;
|
|
575
578
|
configurationService;
|
|
576
579
|
scopeService;
|
|
@@ -616,12 +619,12 @@ var U = class {
|
|
|
616
619
|
}
|
|
617
620
|
}
|
|
618
621
|
async resolveGenerationPath(e) {
|
|
619
|
-
let t = e.inputs[
|
|
622
|
+
let t = e.inputs[ce];
|
|
620
623
|
if (t !== void 0) return d.resolve(e.workspaceRoot, t);
|
|
621
624
|
let n = e.inputs[O];
|
|
622
625
|
if (n === void 0) return this.resolveNewProjectPath({
|
|
623
626
|
tree: e.tree,
|
|
624
|
-
type: e.inputs[
|
|
627
|
+
type: e.inputs[se],
|
|
625
628
|
workspaceRoot: e.workspaceRoot
|
|
626
629
|
});
|
|
627
630
|
let r = ne(e.tree, n), i = d.resolve(e.workspaceRoot, r.root), a = await this.instancesService.findProjectInstances({
|
|
@@ -632,7 +635,7 @@ var U = class {
|
|
|
632
635
|
tags: r.tags ?? []
|
|
633
636
|
},
|
|
634
637
|
workspaceRoot: e.workspaceRoot
|
|
635
|
-
}), o = e.inputs[
|
|
638
|
+
}), o = e.inputs[oe];
|
|
636
639
|
if (o !== void 0) return this.requireModulePath({
|
|
637
640
|
instances: a,
|
|
638
641
|
moduleName: o,
|
|
@@ -648,20 +651,20 @@ var U = class {
|
|
|
648
651
|
}) ?? i : d.join(i, s);
|
|
649
652
|
}
|
|
650
653
|
};
|
|
651
|
-
|
|
654
|
+
G = __decorate([r(), __decorateMetadata("design:paramtypes", [
|
|
652
655
|
L === void 0 ? Object : L,
|
|
653
656
|
m === void 0 ? Object : m,
|
|
654
657
|
E === void 0 ? Object : E
|
|
655
|
-
])],
|
|
658
|
+
])], G);
|
|
656
659
|
//#endregion
|
|
657
660
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.module.ts
|
|
658
|
-
var
|
|
659
|
-
|
|
661
|
+
var K = class PathsModule {};
|
|
662
|
+
K = __decorate([i({
|
|
660
663
|
controllers: [],
|
|
661
664
|
exports: [
|
|
662
665
|
R,
|
|
663
666
|
p,
|
|
664
|
-
|
|
667
|
+
G,
|
|
665
668
|
D
|
|
666
669
|
],
|
|
667
670
|
imports: [
|
|
@@ -669,9 +672,9 @@ W = S([i({
|
|
|
669
672
|
p,
|
|
670
673
|
D
|
|
671
674
|
],
|
|
672
|
-
providers: [
|
|
673
|
-
})],
|
|
674
|
-
var
|
|
675
|
+
providers: [G]
|
|
676
|
+
})], K);
|
|
677
|
+
var fe = ".nxignore", q = class ProjectsService {
|
|
675
678
|
constructor() {}
|
|
676
679
|
isUnknownArray(e) {
|
|
677
680
|
return Array.isArray(e);
|
|
@@ -693,7 +696,7 @@ var he = ".nxignore", G = class {
|
|
|
693
696
|
return t;
|
|
694
697
|
}
|
|
695
698
|
readIgnoredPaths(e) {
|
|
696
|
-
let t = d.resolve(e,
|
|
699
|
+
let t = d.resolve(e, fe);
|
|
697
700
|
return s(t) ? l(t, "utf8").split("\n").map((e) => e.trim()).filter((e) => e !== "" && !e.startsWith("#")) : [];
|
|
698
701
|
}
|
|
699
702
|
listWorkspaceProjects(e) {
|
|
@@ -715,19 +718,19 @@ var he = ".nxignore", G = class {
|
|
|
715
718
|
};
|
|
716
719
|
}
|
|
717
720
|
};
|
|
718
|
-
|
|
721
|
+
q = __decorate([r(), __decorateMetadata("design:paramtypes", [])], q);
|
|
719
722
|
//#endregion
|
|
720
723
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/projects/projects.module.ts
|
|
721
|
-
var
|
|
722
|
-
|
|
724
|
+
var J = class ProjectsModule {};
|
|
725
|
+
J = __decorate([i({
|
|
723
726
|
controllers: [],
|
|
724
|
-
exports: [
|
|
727
|
+
exports: [q],
|
|
725
728
|
imports: [],
|
|
726
|
-
providers: [
|
|
727
|
-
})],
|
|
729
|
+
providers: [q]
|
|
730
|
+
})], J);
|
|
728
731
|
//#endregion
|
|
729
732
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.constants.ts
|
|
730
|
-
var
|
|
733
|
+
var pe = "**/{project.json,conformetry.config.*}", me = "project.json", Y = "__conformetryPluginContext", X, Z = X = class PluginService {
|
|
731
734
|
adapterService;
|
|
732
735
|
instancesService;
|
|
733
736
|
configurationService;
|
|
@@ -740,13 +743,13 @@ var ge = "**/{project.json,conformetry.config.*}", _e = "project.json", q = "__c
|
|
|
740
743
|
validationService;
|
|
741
744
|
logger;
|
|
742
745
|
constructor(e, t, n, r, i, a, o, s, c, l, u) {
|
|
743
|
-
this.adapterService = e, this.instancesService = t, this.configurationService = n, this.generatorService = r, this.generationService = i, this.optionsService = a, this.pathsService = o, this.projectsService = s, this.reportingService = c, this.validationService = l, this.logger = u, this.logger.setContext(
|
|
746
|
+
this.adapterService = e, this.instancesService = t, this.configurationService = n, this.generatorService = r, this.generationService = i, this.optionsService = a, this.pathsService = o, this.projectsService = s, this.reportingService = c, this.validationService = l, this.logger = u, this.logger.setContext(X.name);
|
|
744
747
|
}
|
|
745
748
|
async assertEmittedPluginCurrent(e) {
|
|
746
749
|
let t = await this.generatorService.emitPlugin({
|
|
747
750
|
configurationPath: e.configurationPath,
|
|
748
|
-
outputPath:
|
|
749
|
-
packageName:
|
|
751
|
+
outputPath: k,
|
|
752
|
+
packageName: A,
|
|
750
753
|
projects: this.projectsService.listWorkspaceProjects(e.workspaceRoot)
|
|
751
754
|
});
|
|
752
755
|
for (let n of t) {
|
|
@@ -768,7 +771,7 @@ var ge = "**/{project.json,conformetry.config.*}", _e = "project.json", q = "__c
|
|
|
768
771
|
}
|
|
769
772
|
}
|
|
770
773
|
readNxConfiguration(e) {
|
|
771
|
-
let t = d.resolve(e,
|
|
774
|
+
let t = d.resolve(e, V);
|
|
772
775
|
if (s(t)) return JSON.parse(l(t, "utf8"));
|
|
773
776
|
}
|
|
774
777
|
resolveOptions(e) {
|
|
@@ -797,7 +800,7 @@ var ge = "**/{project.json,conformetry.config.*}", _e = "project.json", q = "__c
|
|
|
797
800
|
options: e.options,
|
|
798
801
|
workspaceRoot: e.workspaceRoot
|
|
799
802
|
}), n = await this.resolveTemplateInputs({ configurationPath: t.configurationPath }), r = /* @__PURE__ */ new Map();
|
|
800
|
-
for (let i of e.projectConfigurationFiles.filter((e) => d.basename(e) ===
|
|
803
|
+
for (let i of e.projectConfigurationFiles.filter((e) => d.basename(e) === me)) {
|
|
801
804
|
let a = this.projectsService.readProjectScope({
|
|
802
805
|
projectConfigurationFile: i,
|
|
803
806
|
workspaceRoot: e.workspaceRoot
|
|
@@ -808,11 +811,11 @@ var ge = "**/{project.json,conformetry.config.*}", _e = "project.json", q = "__c
|
|
|
808
811
|
workspaceRoot: e.workspaceRoot
|
|
809
812
|
})).length !== 0 && r.set(a.root, { [t.validateTargetName]: {
|
|
810
813
|
cache: !0,
|
|
811
|
-
executor: `${
|
|
814
|
+
executor: `${z}:validate`,
|
|
812
815
|
inputs: [
|
|
813
816
|
"default",
|
|
814
817
|
`{workspaceRoot}/${t.configurationPath}`,
|
|
815
|
-
`{workspaceRoot}/${
|
|
818
|
+
`{workspaceRoot}/${k}/**/*`,
|
|
816
819
|
...n
|
|
817
820
|
],
|
|
818
821
|
options: {}
|
|
@@ -887,35 +890,35 @@ var ge = "**/{project.json,conformetry.config.*}", _e = "project.json", q = "__c
|
|
|
887
890
|
};
|
|
888
891
|
}
|
|
889
892
|
};
|
|
890
|
-
|
|
893
|
+
Z = X = __decorate([r(), __decorateMetadata("design:paramtypes", [
|
|
891
894
|
F === void 0 ? Object : F,
|
|
892
895
|
L === void 0 ? Object : L,
|
|
893
896
|
m === void 0 ? Object : m,
|
|
894
|
-
|
|
897
|
+
M === void 0 ? Object : M,
|
|
895
898
|
g === void 0 ? Object : g,
|
|
896
|
-
V === void 0 ? Object : V,
|
|
897
899
|
U === void 0 ? Object : U,
|
|
898
900
|
G === void 0 ? Object : G,
|
|
901
|
+
q === void 0 ? Object : q,
|
|
899
902
|
v === void 0 ? Object : v,
|
|
900
903
|
b === void 0 ? Object : b,
|
|
901
904
|
w === void 0 ? Object : w
|
|
902
|
-
])],
|
|
905
|
+
])], Z);
|
|
903
906
|
//#endregion
|
|
904
907
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.module.ts
|
|
905
|
-
var
|
|
906
|
-
|
|
908
|
+
var Q = class PluginModule {};
|
|
909
|
+
Q = __decorate([i({
|
|
907
910
|
controllers: [],
|
|
908
911
|
exports: [
|
|
909
912
|
I,
|
|
910
913
|
R,
|
|
911
914
|
p,
|
|
912
|
-
|
|
915
|
+
N,
|
|
913
916
|
h,
|
|
914
917
|
T,
|
|
915
|
-
H,
|
|
916
918
|
W,
|
|
917
|
-
Y,
|
|
918
919
|
K,
|
|
920
|
+
Z,
|
|
921
|
+
J,
|
|
919
922
|
_,
|
|
920
923
|
D,
|
|
921
924
|
y
|
|
@@ -924,51 +927,51 @@ X = S([i({
|
|
|
924
927
|
I,
|
|
925
928
|
R,
|
|
926
929
|
p,
|
|
927
|
-
|
|
930
|
+
N,
|
|
928
931
|
h,
|
|
929
932
|
T,
|
|
930
|
-
H,
|
|
931
933
|
W,
|
|
932
934
|
K,
|
|
935
|
+
J,
|
|
933
936
|
_,
|
|
934
937
|
D,
|
|
935
938
|
y
|
|
936
939
|
],
|
|
937
|
-
providers: [
|
|
938
|
-
})],
|
|
940
|
+
providers: [Z]
|
|
941
|
+
})], Q);
|
|
939
942
|
//#endregion
|
|
940
943
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/main.module.ts
|
|
941
|
-
var
|
|
942
|
-
|
|
944
|
+
var $ = class MainModule {};
|
|
945
|
+
$ = __decorate([i({
|
|
943
946
|
controllers: [],
|
|
944
|
-
exports: [
|
|
947
|
+
exports: [N, Q],
|
|
945
948
|
imports: [
|
|
946
|
-
|
|
949
|
+
N,
|
|
947
950
|
T,
|
|
948
|
-
|
|
951
|
+
Q
|
|
949
952
|
],
|
|
950
953
|
providers: []
|
|
951
|
-
})],
|
|
954
|
+
})], $);
|
|
952
955
|
//#endregion
|
|
953
956
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin-context.utilities.ts
|
|
954
|
-
async function
|
|
955
|
-
return (await
|
|
957
|
+
async function resolveGeneratorService() {
|
|
958
|
+
return (await resolvePluginContext()).get(M);
|
|
956
959
|
}
|
|
957
|
-
async function
|
|
958
|
-
return (await
|
|
960
|
+
async function resolveOptionsService() {
|
|
961
|
+
return (await resolvePluginContext()).get(U);
|
|
959
962
|
}
|
|
960
|
-
async function
|
|
961
|
-
return (await
|
|
963
|
+
async function resolvePluginService() {
|
|
964
|
+
return (await resolvePluginContext()).get(Z);
|
|
962
965
|
}
|
|
963
|
-
async function
|
|
964
|
-
return (await
|
|
966
|
+
async function resolveProjectsService() {
|
|
967
|
+
return (await resolvePluginContext()).get(q);
|
|
965
968
|
}
|
|
966
|
-
async function
|
|
969
|
+
async function resolvePluginContext() {
|
|
967
970
|
let t = globalThis;
|
|
968
|
-
return t[
|
|
971
|
+
return t[Y] ??= e.createApplicationContext($, {
|
|
969
972
|
abortOnError: !1,
|
|
970
973
|
logger: !1
|
|
971
|
-
}), await t[
|
|
974
|
+
}), await t[Y];
|
|
972
975
|
}
|
|
973
976
|
//#endregion
|
|
974
|
-
export {
|
|
977
|
+
export { A as _, $ as a, E as b, pe as c, V as d, R as f, k as g, F as h, resolveProjectsService as i, W as l, I as m, resolveOptionsService as n, Q as o, L as p, resolvePluginService as r, Z as s, resolveGeneratorService as t, U as u, ue as v, __name as x, D as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../../../plugin-context.utilities-
|
|
1
|
+
import { r as e } from "../../../plugin-context.utilities-CjWhPqvT.js";
|
|
2
2
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/executors/validate/executor.ts
|
|
3
|
-
async function
|
|
3
|
+
async function validateExecutor(t, n) {
|
|
4
4
|
let r = n.projectName;
|
|
5
5
|
if (r === void 0) throw Error("The conformetry validate executor must be run against a project.");
|
|
6
6
|
let i = n.projectsConfigurations.projects[r];
|
|
@@ -19,4 +19,4 @@ async function t(t, n) {
|
|
|
19
19
|
return process.stdout.write(`${a.report}\n`), { success: a.ok };
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
export {
|
|
22
|
+
export { validateExecutor as default };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { d as e, i as t, n, t as r, v as i } from "../../../plugin-context.utilities-
|
|
1
|
+
import { d as e, i as t, n, t as r, v as i } from "../../../plugin-context.utilities-CjWhPqvT.js";
|
|
2
2
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/generators/sync/generator.ts
|
|
3
|
-
async function
|
|
4
|
-
let
|
|
5
|
-
configurationPath: a?.configurationPath ??
|
|
3
|
+
async function syncGenerator(e, a) {
|
|
4
|
+
let o = await r(), s = await n(), c = await t(), l = await o.emitPlugin({
|
|
5
|
+
configurationPath: a?.configurationPath ?? s.resolveConfigurationPath({
|
|
6
6
|
exists: (t) => e.exists(t),
|
|
7
|
-
nxConfiguration:
|
|
7
|
+
nxConfiguration: readNxConfiguration(e)
|
|
8
8
|
}),
|
|
9
9
|
outputPath: a?.outputPath ?? ".conformetry/nx-generators",
|
|
10
10
|
packageName: a?.packageName ?? "conformetry",
|
|
11
|
-
projects:
|
|
11
|
+
projects: c.listWorkspaceProjects(e.root)
|
|
12
12
|
});
|
|
13
|
-
for (let t of
|
|
13
|
+
for (let t of l) e.write(t.filePath, t.content);
|
|
14
14
|
return { outOfSyncMessage: i };
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function readNxConfiguration(t) {
|
|
17
17
|
let n = t.read(e, "utf8");
|
|
18
18
|
if (n !== null) return JSON.parse(n);
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { syncGenerator as default };
|
package/dist/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, b as t, c as n, f as r, h as i, l as a, m as o, o as s, p as c, r as l, s as u, u as d, y as f } from "../plugin-context.utilities-
|
|
2
|
-
import { n as p, t as m } from "../bootstrap.utilities-
|
|
1
|
+
import { a as e, b as t, c as n, f as r, h as i, l as a, m as o, o as s, p as c, r as l, s as u, u as d, y as f } from "../plugin-context.utilities-CjWhPqvT.js";
|
|
2
|
+
import { n as p, t as m } from "../bootstrap.utilities-B2M9tLjN.js";
|
|
3
3
|
import h from "node:path";
|
|
4
4
|
//#region packages/ic-suite/conformetry/conformetry-nx/src/index.ts
|
|
5
5
|
var g = {
|
|
@@ -16,7 +16,7 @@ var g = {
|
|
|
16
16
|
}],
|
|
17
17
|
name: "@conformetry/nx"
|
|
18
18
|
};
|
|
19
|
-
async function
|
|
19
|
+
async function runConformetryGenerator(e) {
|
|
20
20
|
return await (await l()).runGenerator({
|
|
21
21
|
generatorName: e.generatorName,
|
|
22
22
|
options: e.options ?? {},
|
|
@@ -25,4 +25,4 @@ async function _(e) {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
|
-
export { o as AdapterModule, i as AdapterService, r as InstancesModule, c as InstancesService, e as MainModule, a as OptionsModule, d as OptionsService, s as PluginModule, u as PluginService, f as ScopeModule, t as ScopeService, m as bootstrapPlugin, g as default, l as resolvePluginService, p as runBootstrapCli,
|
|
28
|
+
export { o as AdapterModule, i as AdapterService, r as InstancesModule, c as InstancesService, e as MainModule, a as OptionsModule, d as OptionsService, s as PluginModule, u as PluginService, f as ScopeModule, t as ScopeService, m as bootstrapPlugin, g as default, l as resolvePluginService, p as runBootstrapCli, runConformetryGenerator };
|
package/dist/src/main.js
CHANGED
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@conformetry/configuration": "0.0.
|
|
11
|
-
"@conformetry/generation": "0.0.
|
|
12
|
-
"@conformetry/output": "0.0.
|
|
13
|
-
"@conformetry/validation": "0.0.
|
|
10
|
+
"@conformetry/configuration": "0.0.12",
|
|
11
|
+
"@conformetry/generation": "0.0.12",
|
|
12
|
+
"@conformetry/output": "0.0.11",
|
|
13
|
+
"@conformetry/validation": "0.0.11",
|
|
14
14
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
15
15
|
"@nestjs/core": "^11.1.21 || ^12.0.1",
|
|
16
16
|
"@nx/devkit": "^23.0.0",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"strict": true
|
|
83
83
|
},
|
|
84
84
|
"types": "./dist/src/index.d.ts",
|
|
85
|
-
"version": "0.0.
|
|
85
|
+
"version": "0.0.11"
|
|
86
86
|
}
|