@codometer/cli 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 +22 -0
- package/README.md +34 -32
- package/dist/{main.module-BYCq9uc_.js → main.module-5Yekg3hc.js} +129 -126
- package/dist/src/index.js +1 -1
- package/dist/src/main.js +7 -7
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 0.0.11 (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated codometer-configuration to 0.0.11
|
|
6
|
+
- Updated codometer-measurement to 0.0.11
|
|
7
|
+
- Updated codometer-output to 0.0.11
|
|
8
|
+
- Updated codometer-core to 0.0.11
|
|
9
|
+
|
|
10
|
+
## 0.0.10 (2026-10-08)
|
|
11
|
+
|
|
12
|
+
### 🩹 Fixes
|
|
13
|
+
|
|
14
|
+
- **ic-suite:** 🐛 keep class and function names in the published ic-suite bundles ([#1472](https://github.com/organizzolini/codebase/pull/1472), [#1451](https://github.com/organizzolini/codebase/issues/1451))
|
|
15
|
+
|
|
16
|
+
### 🧱 Updated Dependencies
|
|
17
|
+
|
|
18
|
+
- Updated codometer-configuration to 0.0.10
|
|
19
|
+
- Updated codometer-measurement to 0.0.10
|
|
20
|
+
- Updated codometer-output to 0.0.10
|
|
21
|
+
- Updated codometer-core to 0.0.10
|
|
22
|
+
|
|
1
23
|
## 0.0.9 (2026-10-08)
|
|
2
24
|
|
|
3
25
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -446,40 +446,40 @@ named `<!-- codometer:start -->
|
|
|
446
446
|
|
|
447
447
|
### Project
|
|
448
448
|
|
|
449
|
-

|
|
450
|
+

|
|
451
451
|

|
|
452
|
-

|
|
453
453
|
|
|
454
454
|
### Measured Targets
|
|
455
455
|
|
|
456
|
-

|
|
457
457
|
|
|
458
458
|
### TypeScript
|
|
459
459
|
|
|
460
|
-

|
|
461
|
+

|
|
462
462
|

|
|
463
463
|

|
|
464
464
|

|
|
465
|
-

|
|
466
466
|

|
|
467
467
|
|
|
468
468
|
### JavaScript
|
|
469
469
|
|
|
470
470
|

|
|
471
|
-

|
|
472
|
+

|
|
473
473
|

|
|
474
|
-

|
|
475
475
|

|
|
476
|
-

|
|
477
|
+

|
|
478
|
+

|
|
479
|
+

|
|
480
480
|

|
|
481
|
-

|
|
482
|
+

|
|
483
483
|

|
|
484
484
|
|
|
485
485
|
### Python
|
|
@@ -500,17 +500,17 @@ named `<!-- codometer:start -->
|
|
|
500
500
|
### JSON
|
|
501
501
|
|
|
502
502
|

|
|
503
|
-

|
|
504
|
+

|
|
505
|
+

|
|
506
|
+

|
|
507
|
+

|
|
508
508
|

|
|
509
509
|

|
|
510
510
|

|
|
511
|
-

|
|
512
|
+

|
|
513
|
+

|
|
514
514
|
|
|
515
515
|
### YAML
|
|
516
516
|
|
|
@@ -598,7 +598,7 @@ named `<!-- codometer:start -->
|
|
|
598
598
|

|
|
599
599
|

|
|
600
600
|

|
|
601
|
-

|
|
602
602
|

|
|
603
603
|

|
|
604
604
|

|
|
@@ -635,20 +635,20 @@ named `<!-- codometer:start -->
|
|
|
635
635
|
### Markdown
|
|
636
636
|
|
|
637
637
|

|
|
638
|
-

|
|
639
639
|

|
|
640
|
-

|
|
641
|
+

|
|
642
642
|

|
|
643
643
|

|
|
644
644
|

|
|
645
|
-

|
|
646
|
+

|
|
647
|
+

|
|
648
648
|

|
|
649
649
|

|
|
650
650
|

|
|
651
|
-

|
|
652
652
|

|
|
653
653
|

|
|
654
654
|

|
|
@@ -1233,6 +1233,7 @@ graph LR
|
|
|
1233
1233
|
file_testing_mocks_ts["testing/mocks.ts"]
|
|
1234
1234
|
file_testing_setup_ts["testing/setup.ts"]
|
|
1235
1235
|
file_testing_target_tree_ts["testing/target-tree.ts"]
|
|
1236
|
+
file_testing_vite_library_config_integration_test_ts["testing/vite-library-config.integration.test.ts"]
|
|
1236
1237
|
file_vite_config_ts["vite.config.ts"]
|
|
1237
1238
|
file_vitest_config_ts["vitest.config.ts"]
|
|
1238
1239
|
file_src_main_end_to_end_test_ts --> file_src_constants_ts
|
|
@@ -1259,6 +1260,7 @@ graph LR
|
|
|
1259
1260
|
file_src_modules_measure_measure_command_unit_test_ts --> file_testing_mocks_ts
|
|
1260
1261
|
file_src_modules_measure_measure_module_ts --> file_src_modules_measure_measure_command_ts
|
|
1261
1262
|
file_src_repl_ts --> file_src_main_module_ts
|
|
1263
|
+
file_testing_vite_library_config_integration_test_ts --> file_vite_config_ts
|
|
1262
1264
|
```
|
|
1263
1265
|
<!-- codependix:end name="codependix-file-imports" -->
|
|
1264
1266
|
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { ConfigurationModule as e, ConfigurationService as t, FORMAT_NAMES as n } from "@codometer/configuration";
|
|
2
2
|
import { DiscoveryModule as r, MeasureModule as i, MeasureService as a } from "@codometer/measurement";
|
|
3
|
-
import { CODOMETER_MARKERS as o, ChangesModule as s, ChangesService as c, ConfigurationListingModule as l, ConfigurationListingService as u, DeliveryModule as d, DeliveryService as f, DestinationsModule as p, DestinationsService as m, DocumentsModule as
|
|
3
|
+
import { CODOMETER_MARKERS as o, ChangesModule as s, ChangesService as c, ConfigurationListingModule as l, ConfigurationListingService as u, DeliveryModule as d, DeliveryService as f, DestinationsModule as p, DestinationsService as m, DocumentsModule as h, DocumentsService as g, JsonModule as _, MarkdownModule as ee, RenderConfigurationService as v, RenderModule as y, RenderService as b, ReportModule as x, ReportService as S } from "@codometer/output";
|
|
4
4
|
import { ConsoleLogger as te, Global as ne, Injectable as C, Module as w, Scope as T } from "@nestjs/common";
|
|
5
5
|
import { ConfigModule as E } from "@nestjs/config";
|
|
6
|
-
import { DiscoveryModule as
|
|
7
|
-
import { existsSync as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { z as
|
|
11
|
-
import { Command as
|
|
12
|
-
//#region
|
|
13
|
-
var
|
|
6
|
+
import { DiscoveryModule as re } from "@nestjs/core";
|
|
7
|
+
import { existsSync as D, mkdirSync as O } from "node:fs";
|
|
8
|
+
import k from "node:path";
|
|
9
|
+
import A from "pino";
|
|
10
|
+
import { z as j } from "zod";
|
|
11
|
+
import { Command as M, CommandRunner as N, Option as P } from "nest-commander";
|
|
12
|
+
//#region \0rolldown/runtime.js
|
|
13
|
+
var ie = Object.defineProperty, __name = (e, t) => ie(e, "name", {
|
|
14
|
+
value: t,
|
|
15
|
+
configurable: !0
|
|
16
|
+
}), ae = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, F = /^([A-Za-z]+)/, I = /* @__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
|
+
]), L = /* @__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 L(e, t, n, r) {
|
|
|
54
57
|
}
|
|
55
58
|
//#endregion
|
|
56
59
|
//#region packages/logging/src/modules/logger/logger.service.ts
|
|
57
|
-
var R, z = class extends te {
|
|
60
|
+
var R, z = class LoggerService extends te {
|
|
58
61
|
static {
|
|
59
62
|
R = this;
|
|
60
63
|
}
|
|
@@ -67,7 +70,7 @@ var R, z = class extends te {
|
|
|
67
70
|
child = R.root;
|
|
68
71
|
static createRootLogger() {
|
|
69
72
|
let e = process.env.LOG_LEVEL ?? "info";
|
|
70
|
-
return R.isProduction ? R.writesToStandardError ?
|
|
73
|
+
return R.isProduction ? R.writesToStandardError ? A({ level: e }, A.destination(2)) : A({ level: e }) : A({
|
|
71
74
|
level: e,
|
|
72
75
|
transport: {
|
|
73
76
|
options: {
|
|
@@ -106,15 +109,15 @@ var R, z = class extends te {
|
|
|
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 = F.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) {
|
|
113
116
|
let t = e.toLowerCase();
|
|
114
|
-
return t.endsWith("ing") || t.endsWith("ed") ||
|
|
117
|
+
return t.endsWith("ing") || t.endsWith("ed") || I.has(t);
|
|
115
118
|
}
|
|
116
119
|
parseMessage(e) {
|
|
117
|
-
let t = String(e), n =
|
|
120
|
+
let t = String(e), n = ae.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 R, z = class extends te {
|
|
|
124
127
|
};
|
|
125
128
|
}
|
|
126
129
|
shouldSkipConventionalMessageValidation(e) {
|
|
127
|
-
return e !== void 0 &&
|
|
130
|
+
return e !== void 0 && L.has(e);
|
|
128
131
|
}
|
|
129
132
|
static get root() {
|
|
130
133
|
return R.rootLogger ??= R.createRootLogger(), R.rootLogger;
|
|
@@ -137,8 +140,8 @@ var R, z = class extends te {
|
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
createTimestampedOutputLogFilePath(e) {
|
|
140
|
-
let t =
|
|
141
|
-
return
|
|
143
|
+
let t = k.join(process.cwd(), "output");
|
|
144
|
+
return D(t) || O(t, { recursive: !0 }), k.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
|
|
142
145
|
}
|
|
143
146
|
debug(e, t, n) {
|
|
144
147
|
let r = this.parseMessage(e);
|
|
@@ -190,11 +193,11 @@ var R, z = class extends te {
|
|
|
190
193
|
}), r.text);
|
|
191
194
|
}
|
|
192
195
|
};
|
|
193
|
-
z = R =
|
|
196
|
+
z = R = __decorate([C({ scope: T.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], z);
|
|
194
197
|
//#endregion
|
|
195
198
|
//#region packages/logging/src/modules/logger/logger.module.ts
|
|
196
|
-
var B = class {};
|
|
197
|
-
B =
|
|
199
|
+
var B = class LoggerModule {};
|
|
200
|
+
B = __decorate([ne(), w({
|
|
198
201
|
controllers: [],
|
|
199
202
|
exports: [z],
|
|
200
203
|
imports: [],
|
|
@@ -202,7 +205,7 @@ B = L([ne(), w({
|
|
|
202
205
|
})], B);
|
|
203
206
|
//#endregion
|
|
204
207
|
//#region packages/ic-suite/codometer/codometer-cli/src/constants.ts
|
|
205
|
-
var V =
|
|
208
|
+
var V = j.object({}), H, U = H = class ChangesCommand extends N {
|
|
206
209
|
configurationService;
|
|
207
210
|
changesService;
|
|
208
211
|
documentsService;
|
|
@@ -251,70 +254,70 @@ var V = M.object({}), H, U = H = class extends P {
|
|
|
251
254
|
});
|
|
252
255
|
}
|
|
253
256
|
};
|
|
254
|
-
|
|
255
|
-
|
|
257
|
+
__decorate([
|
|
258
|
+
P({
|
|
256
259
|
description: "Directory holding a baseline snapshot of the reports",
|
|
257
260
|
flags: "--baseline [baseline]"
|
|
258
261
|
}),
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
], U.prototype, "parseBaseline", null),
|
|
263
|
-
|
|
262
|
+
__decorateMetadata("design:type", Function),
|
|
263
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
264
|
+
__decorateMetadata("design:returntype", Object)
|
|
265
|
+
], U.prototype, "parseBaseline", null), __decorate([
|
|
266
|
+
P({
|
|
264
267
|
description: "Run URL the baseline came from",
|
|
265
268
|
flags: "--baseline-url [baselineUrl]"
|
|
266
269
|
}),
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
], U.prototype, "parseBaselineUrl", null),
|
|
271
|
-
|
|
270
|
+
__decorateMetadata("design:type", Function),
|
|
271
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
272
|
+
__decorateMetadata("design:returntype", Object)
|
|
273
|
+
], U.prototype, "parseBaselineUrl", null), __decorate([
|
|
274
|
+
P({
|
|
272
275
|
description: "Directory to look for codometer reports in",
|
|
273
276
|
flags: "-d, --directory [directory]"
|
|
274
277
|
}),
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
], U.prototype, "parseDirectory", null),
|
|
279
|
-
|
|
278
|
+
__decorateMetadata("design:type", Function),
|
|
279
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
280
|
+
__decorateMetadata("design:returntype", String)
|
|
281
|
+
], U.prototype, "parseDirectory", null), __decorate([
|
|
282
|
+
P({
|
|
280
283
|
description: "Markdown document to splice the report into",
|
|
281
284
|
flags: "--markdown [markdown]"
|
|
282
285
|
}),
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
], U.prototype, "parseMarkdown", null),
|
|
287
|
-
|
|
286
|
+
__decorateMetadata("design:type", Function),
|
|
287
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
288
|
+
__decorateMetadata("design:returntype", Object)
|
|
289
|
+
], U.prototype, "parseMarkdown", null), __decorate([
|
|
290
|
+
P({
|
|
288
291
|
description: "File to write the report to",
|
|
289
292
|
flags: "--output [output]"
|
|
290
293
|
}),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
], U.prototype, "parseOutput", null), U = H =
|
|
295
|
-
|
|
294
|
+
__decorateMetadata("design:type", Function),
|
|
295
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
296
|
+
__decorateMetadata("design:returntype", Object)
|
|
297
|
+
], U.prototype, "parseOutput", null), U = H = __decorate([
|
|
298
|
+
M({
|
|
296
299
|
description: "Report codometer's changes against a baseline",
|
|
297
300
|
name: "changes"
|
|
298
301
|
}),
|
|
299
302
|
C(),
|
|
300
|
-
|
|
303
|
+
__decorateMetadata("design:paramtypes", [
|
|
301
304
|
t === void 0 ? Object : t,
|
|
302
305
|
c === void 0 ? Object : c,
|
|
303
|
-
|
|
306
|
+
g === void 0 ? Object : g,
|
|
304
307
|
b === void 0 ? Object : b,
|
|
305
308
|
z === void 0 ? Object : z
|
|
306
309
|
])
|
|
307
310
|
], U);
|
|
308
311
|
//#endregion
|
|
309
312
|
//#region packages/ic-suite/codometer/codometer-cli/src/modules/changes/changes.module.ts
|
|
310
|
-
var W = class {};
|
|
311
|
-
W =
|
|
313
|
+
var W = class ChangesModule {};
|
|
314
|
+
W = __decorate([w({
|
|
312
315
|
controllers: [],
|
|
313
316
|
exports: [U],
|
|
314
317
|
imports: [
|
|
315
318
|
s,
|
|
316
319
|
e,
|
|
317
|
-
|
|
320
|
+
h,
|
|
318
321
|
B,
|
|
319
322
|
y
|
|
320
323
|
],
|
|
@@ -322,7 +325,7 @@ W = L([w({
|
|
|
322
325
|
})], W);
|
|
323
326
|
//#endregion
|
|
324
327
|
//#region packages/ic-suite/codometer/codometer-cli/src/modules/configuration/configuration.constants.ts
|
|
325
|
-
var G = ["json", "markdown"], K = "markdown", q, J = q = class extends
|
|
328
|
+
var G = ["json", "markdown"], K = "markdown", q, J = q = class ConfigurationCommand extends N {
|
|
326
329
|
codometerConfigurationService;
|
|
327
330
|
configurationService;
|
|
328
331
|
renderConfigurationService;
|
|
@@ -345,7 +348,7 @@ var G = ["json", "markdown"], K = "markdown", q, J = q = class extends P {
|
|
|
345
348
|
async run(e, t = {}) {
|
|
346
349
|
let n = t.format ?? "markdown";
|
|
347
350
|
if (!G.includes(n)) throw Error(`--format does not accept "${n}". It takes one of ${G.join(" and ")}.`);
|
|
348
|
-
let r =
|
|
351
|
+
let r = k.resolve(t.directory ?? process.cwd()), { described: i, rootError: a } = await this.configurationService.describeConfigurations({
|
|
349
352
|
configurationPath: t.config,
|
|
350
353
|
workingDirectory: r
|
|
351
354
|
});
|
|
@@ -363,45 +366,45 @@ var G = ["json", "markdown"], K = "markdown", q, J = q = class extends P {
|
|
|
363
366
|
process.stdout.write(`${o}\n`);
|
|
364
367
|
}
|
|
365
368
|
};
|
|
366
|
-
|
|
367
|
-
|
|
369
|
+
__decorate([
|
|
370
|
+
P({
|
|
368
371
|
description: "Path to the configuration file answering for the directory being listed",
|
|
369
372
|
flags: "--config [config]"
|
|
370
373
|
}),
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
], J.prototype, "parseConfig", null),
|
|
375
|
-
|
|
374
|
+
__decorateMetadata("design:type", Function),
|
|
375
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
376
|
+
__decorateMetadata("design:returntype", Object)
|
|
377
|
+
], J.prototype, "parseConfig", null), __decorate([
|
|
378
|
+
P({
|
|
376
379
|
description: "Directory to look for configuration files beneath",
|
|
377
380
|
flags: "-d, --directory [directory]"
|
|
378
381
|
}),
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
], J.prototype, "parseDirectory", null),
|
|
383
|
-
|
|
382
|
+
__decorateMetadata("design:type", Function),
|
|
383
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
384
|
+
__decorateMetadata("design:returntype", String)
|
|
385
|
+
], J.prototype, "parseDirectory", null), __decorate([
|
|
386
|
+
P({
|
|
384
387
|
description: `Output format, one of ${G.join(", ")}`,
|
|
385
388
|
flags: "-f, --format [format]"
|
|
386
389
|
}),
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
], J.prototype, "parseFormat", null),
|
|
391
|
-
|
|
390
|
+
__decorateMetadata("design:type", Function),
|
|
391
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
392
|
+
__decorateMetadata("design:returntype", String)
|
|
393
|
+
], J.prototype, "parseFormat", null), __decorate([
|
|
394
|
+
P({
|
|
392
395
|
description: "List only the configured limits",
|
|
393
396
|
flags: "--limits"
|
|
394
397
|
}),
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
], J.prototype, "parseLimits", null), J = q =
|
|
399
|
-
|
|
398
|
+
__decorateMetadata("design:type", Function),
|
|
399
|
+
__decorateMetadata("design:paramtypes", []),
|
|
400
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
401
|
+
], J.prototype, "parseLimits", null), J = q = __decorate([
|
|
402
|
+
M({
|
|
400
403
|
description: "List the codometer configuration found beneath a directory",
|
|
401
404
|
name: "configuration"
|
|
402
405
|
}),
|
|
403
406
|
C(),
|
|
404
|
-
|
|
407
|
+
__decorateMetadata("design:paramtypes", [
|
|
405
408
|
t === void 0 ? Object : t,
|
|
406
409
|
u === void 0 ? Object : u,
|
|
407
410
|
v === void 0 ? Object : v,
|
|
@@ -410,8 +413,8 @@ L([
|
|
|
410
413
|
], J);
|
|
411
414
|
//#endregion
|
|
412
415
|
//#region packages/ic-suite/codometer/codometer-cli/src/modules/configuration/configuration.module.ts
|
|
413
|
-
var Y = class {};
|
|
414
|
-
Y =
|
|
416
|
+
var Y = class ConfigurationModule {};
|
|
417
|
+
Y = __decorate([w({
|
|
415
418
|
controllers: [],
|
|
416
419
|
exports: [J],
|
|
417
420
|
imports: [e, l],
|
|
@@ -419,7 +422,7 @@ Y = L([w({
|
|
|
419
422
|
})], Y);
|
|
420
423
|
//#endregion
|
|
421
424
|
//#region packages/ic-suite/codometer/codometer-cli/src/modules/measure/measure.command.ts
|
|
422
|
-
var X, Z = X = class extends
|
|
425
|
+
var X, Z = X = class MeasureCommand extends N {
|
|
423
426
|
configurationService;
|
|
424
427
|
measureService;
|
|
425
428
|
deliveryService;
|
|
@@ -507,7 +510,7 @@ var X, Z = X = class extends P {
|
|
|
507
510
|
};
|
|
508
511
|
}
|
|
509
512
|
resolveWorkingDirectory() {
|
|
510
|
-
let e =
|
|
513
|
+
let e = k.resolve(process.cwd());
|
|
511
514
|
return this.logger.debug("🚀 Started the measurement run", void 0, { directory: e }), e;
|
|
512
515
|
}
|
|
513
516
|
parseCheck(e) {
|
|
@@ -556,61 +559,61 @@ var X, Z = X = class extends P {
|
|
|
556
559
|
});
|
|
557
560
|
}
|
|
558
561
|
};
|
|
559
|
-
|
|
560
|
-
|
|
562
|
+
__decorate([
|
|
563
|
+
P({
|
|
561
564
|
description: "Fail on a comma-separated set drawn from \"reports\" and \"limits\"",
|
|
562
565
|
flags: "--check [check]"
|
|
563
566
|
}),
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
], Z.prototype, "parseCheck", null),
|
|
568
|
-
|
|
567
|
+
__decorateMetadata("design:type", Function),
|
|
568
|
+
__decorateMetadata("design:paramtypes", [String]),
|
|
569
|
+
__decorateMetadata("design:returntype", String)
|
|
570
|
+
], Z.prototype, "parseCheck", null), __decorate([
|
|
571
|
+
P({
|
|
569
572
|
description: "Path to the codometer configuration file",
|
|
570
573
|
flags: "--config [config]"
|
|
571
574
|
}),
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
], Z.prototype, "parseConfig", null),
|
|
576
|
-
|
|
575
|
+
__decorateMetadata("design:type", Function),
|
|
576
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
577
|
+
__decorateMetadata("design:returntype", Object)
|
|
578
|
+
], Z.prototype, "parseConfig", null), __decorate([
|
|
579
|
+
P({
|
|
577
580
|
description: `What to print to standard output, one of ${n.join(" and ")}`,
|
|
578
581
|
flags: "-f, --format <format>"
|
|
579
582
|
}),
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
], Z.prototype, "parseFormat", null),
|
|
584
|
-
|
|
583
|
+
__decorateMetadata("design:type", Function),
|
|
584
|
+
__decorateMetadata("design:paramtypes", [String]),
|
|
585
|
+
__decorateMetadata("design:returntype", String)
|
|
586
|
+
], Z.prototype, "parseFormat", null), __decorate([
|
|
587
|
+
P({
|
|
585
588
|
description: "Glob array measured in place of every configured input, with no configured input — not even the built-in codebase one — active",
|
|
586
589
|
flags: "--inputs [globs...]"
|
|
587
590
|
}),
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
], Z.prototype, "parseInputs", null),
|
|
592
|
-
|
|
591
|
+
__decorateMetadata("design:type", Function),
|
|
592
|
+
__decorateMetadata("design:paramtypes", [String, Array]),
|
|
593
|
+
__decorateMetadata("design:returntype", Array)
|
|
594
|
+
], Z.prototype, "parseInputs", null), __decorate([
|
|
595
|
+
P({
|
|
593
596
|
description: "Write the JSON report, at the given path or the configured one",
|
|
594
597
|
flags: "--output-json [outputJson]"
|
|
595
598
|
}),
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
], Z.prototype, "parseOutputJson", null),
|
|
600
|
-
|
|
599
|
+
__decorateMetadata("design:type", Function),
|
|
600
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
601
|
+
__decorateMetadata("design:returntype", Object)
|
|
602
|
+
], Z.prototype, "parseOutputJson", null), __decorate([
|
|
603
|
+
P({
|
|
601
604
|
description: "Write the markdown badge block, at the given path or the configured one",
|
|
602
605
|
flags: "--output-markdown [outputMarkdown]"
|
|
603
606
|
}),
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
], Z.prototype, "parseOutputMarkdown", null), Z = X =
|
|
608
|
-
|
|
607
|
+
__decorateMetadata("design:type", Function),
|
|
608
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
609
|
+
__decorateMetadata("design:returntype", Object)
|
|
610
|
+
], Z.prototype, "parseOutputMarkdown", null), Z = X = __decorate([
|
|
611
|
+
M({
|
|
609
612
|
description: "Measure a directory and produce every resolved output",
|
|
610
613
|
name: "measure"
|
|
611
614
|
}),
|
|
612
615
|
C(),
|
|
613
|
-
|
|
616
|
+
__decorateMetadata("design:paramtypes", [
|
|
614
617
|
t === void 0 ? Object : t,
|
|
615
618
|
a === void 0 ? Object : a,
|
|
616
619
|
f === void 0 ? Object : f,
|
|
@@ -621,8 +624,8 @@ L([
|
|
|
621
624
|
], Z);
|
|
622
625
|
//#endregion
|
|
623
626
|
//#region packages/ic-suite/codometer/codometer-cli/src/modules/measure/measure.module.ts
|
|
624
|
-
var Q = class {};
|
|
625
|
-
Q =
|
|
627
|
+
var Q = class MeasureModule {};
|
|
628
|
+
Q = __decorate([w({
|
|
626
629
|
controllers: [],
|
|
627
630
|
exports: [Z],
|
|
628
631
|
imports: [
|
|
@@ -637,22 +640,22 @@ Q = L([w({
|
|
|
637
640
|
})], Q);
|
|
638
641
|
//#endregion
|
|
639
642
|
//#region packages/ic-suite/codometer/codometer-cli/src/main.module.ts
|
|
640
|
-
var $ = class {};
|
|
641
|
-
$ =
|
|
643
|
+
var $ = class MainModule {};
|
|
644
|
+
$ = __decorate([w({ imports: [
|
|
642
645
|
E.forRoot({
|
|
643
646
|
envFilePath: ".env",
|
|
644
647
|
isGlobal: !0,
|
|
645
648
|
validate: (e) => V.parse(e)
|
|
646
649
|
}),
|
|
647
|
-
|
|
650
|
+
re,
|
|
648
651
|
B,
|
|
649
652
|
W,
|
|
650
653
|
Y,
|
|
651
654
|
Q,
|
|
652
655
|
r,
|
|
653
656
|
e,
|
|
654
|
-
|
|
655
|
-
|
|
657
|
+
_,
|
|
658
|
+
ee
|
|
656
659
|
] })], $);
|
|
657
660
|
//#endregion
|
|
658
|
-
export { J as a, z as c, Y as i, Q as n, W as o, Z as r, U as s, $ as t };
|
|
661
|
+
export { J as a, z as c, Y as i, __name as l, Q as n, W as o, Z as r, U as s, $ as t };
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../main.module-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../main.module-5Yekg3hc.js";
|
|
2
2
|
export { a as ChangesCommand, r as ChangesModule, e as ConfigurationCommand, t as ConfigurationModule, o as MainModule, i as MeasureCommand, n as MeasureModule };
|
package/dist/src/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as e, t } from "../main.module-
|
|
2
|
+
import { c as e, t } from "../main.module-5Yekg3hc.js";
|
|
3
3
|
import { CommandFactory as n } from "nest-commander";
|
|
4
4
|
import "reflect-metadata";
|
|
5
5
|
//#region packages/ic-suite/codometer/codometer-cli/src/main.utilities.ts
|
|
6
|
-
function
|
|
6
|
+
function withDefaultCommand(e) {
|
|
7
7
|
let t = /* @__PURE__ */ new Set([
|
|
8
8
|
"changes",
|
|
9
9
|
"configuration",
|
|
@@ -14,13 +14,13 @@ function r(e) {
|
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region packages/ic-suite/codometer/codometer-cli/src/main.ts
|
|
17
|
-
async function
|
|
17
|
+
async function main() {
|
|
18
18
|
e.logToStandardError();
|
|
19
|
-
let
|
|
20
|
-
|
|
19
|
+
let r = new e();
|
|
20
|
+
r.setContext("CommandFactory"), process.argv = [...process.argv.slice(0, 2), ...withDefaultCommand(process.argv.slice(2))], await n.run(t, {
|
|
21
21
|
bufferLogs: !0,
|
|
22
|
-
logger:
|
|
22
|
+
logger: r
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
main();
|
|
26
26
|
//#endregion
|
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@codometer/configuration": "0.0.
|
|
11
|
-
"@codometer/core": "0.0.
|
|
12
|
-
"@codometer/measurement": "0.0.
|
|
13
|
-
"@codometer/output": "0.0.
|
|
10
|
+
"@codometer/configuration": "0.0.11",
|
|
11
|
+
"@codometer/core": "0.0.11",
|
|
12
|
+
"@codometer/measurement": "0.0.11",
|
|
13
|
+
"@codometer/output": "0.0.11",
|
|
14
14
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
15
15
|
"@nestjs/config": "^12.0.0",
|
|
16
16
|
"@nestjs/core": "^11.1.21 || ^12.0.1",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"@types/node": "^26.5.1",
|
|
33
33
|
"@vitest/coverage-v8": "^5.0.0",
|
|
34
34
|
"typescript": "^6.0.3",
|
|
35
|
+
"vite": "8.3.2",
|
|
35
36
|
"vitest": "^5.0.0"
|
|
36
37
|
},
|
|
37
38
|
"exports": {
|
|
@@ -74,5 +75,5 @@
|
|
|
74
75
|
"strict": true
|
|
75
76
|
},
|
|
76
77
|
"types": "./dist/src/index.d.ts",
|
|
77
|
-
"version": "0.0.
|
|
78
|
+
"version": "0.0.11"
|
|
78
79
|
}
|