@codometer/cli 0.0.26 → 0.0.27
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 +13 -0
- package/README.md +33 -33
- package/dist/{main.module-BFF0rQBN.js → codometer-cli.module-CB9I6zxo.js} +80 -80
- package/dist/src/{main.js → codometer-cli.main.js} +4 -4
- package/dist/src/index.js +1 -1
- package/package.json +6 -6
- /package/dist/src/{main.d.ts → codometer-cli.main.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## 0.0.27 (2026-10-15)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **ic-suite,configuration:** ✨ name root files after their project and declare root modules ([#1588](https://github.com/organizzolini/codebase/pull/1588), [#1480](https://github.com/organizzolini/codebase/issues/1480))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated codometer-configuration to 0.0.26
|
|
10
|
+
- Updated codometer-measurement to 0.0.26
|
|
11
|
+
- Updated codometer-output to 0.0.26
|
|
12
|
+
- Updated codometer-core to 0.0.26
|
|
13
|
+
|
|
1
14
|
## 0.0.26 (2026-10-15)
|
|
2
15
|
|
|
3
16
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -447,13 +447,13 @@ named `<!-- codometer:start -->
|
|
|
447
447
|
### Project
|
|
448
448
|
|
|
449
449
|

|
|
450
|
-

|
|
451
451
|

|
|
452
452
|

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

|
|
457
457
|
|
|
458
458
|
### TypeScript
|
|
459
459
|
|
|
@@ -593,7 +593,7 @@ named `<!-- codometer:start -->
|
|
|
593
593
|

|
|
594
594
|

|
|
595
595
|

|
|
596
|
-

|
|
597
597
|

|
|
598
598
|

|
|
599
599
|

|
|
@@ -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
|

|
|
@@ -1043,9 +1043,9 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
1043
1043
|
**11. `main`** — depth 2 · module-bootstrap
|
|
1044
1044
|
|
|
1045
1045
|
```text
|
|
1046
|
-
🚀 main(): Promise<void> [projects/ic-suite/codometer/codometer-cli/src/main.ts:26]
|
|
1046
|
+
🚀 main(): Promise<void> [projects/ic-suite/codometer/codometer-cli/src/codometer-cli.main.ts:26]
|
|
1047
1047
|
↳ Bootstraps the codometer CLI command application.
|
|
1048
|
-
└─> withDefaultCommand(argv: readonly string[]): string[] [projects/ic-suite/codometer/codometer-cli/src/
|
|
1048
|
+
└─> withDefaultCommand(argv: readonly string[]): string[] [projects/ic-suite/codometer/codometer-cli/src/codometer-cli.utilities.ts:14]
|
|
1049
1049
|
↳ Inserts the default `measure` subcommand when the command line names no registered command.
|
|
1050
1050
|
```
|
|
1051
1051
|
|
|
@@ -1075,7 +1075,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
1075
1075
|
| `ConfigurationCommand.parseDirectory` | 1 | `ConfigurationService.parseDirectoryOption` | `projects/ic-suite/codometer/codometer-cli/src/modules/configuration/configuration.command.ts:74` |
|
|
1076
1076
|
| `ConfigurationCommand.parseFormat` | 1 | `ConfigurationService.parseDefaultedOption` | `projects/ic-suite/codometer/codometer-cli/src/modules/configuration/configuration.command.ts:83` |
|
|
1077
1077
|
| `MeasureCommand.readConfiguration` | 1 | `ConfigurationService.loadConfiguration` | `projects/ic-suite/codometer/codometer-cli/src/modules/measure/measure.command.ts:111` |
|
|
1078
|
-
| `main` | 1 | `withDefaultCommand` | `projects/ic-suite/codometer/codometer-cli/src/main.ts:26` |
|
|
1078
|
+
| `main` | 1 | `withDefaultCommand` | `projects/ic-suite/codometer/codometer-cli/src/codometer-cli.main.ts:26` |
|
|
1079
1079
|
|
|
1080
1080
|
</details>
|
|
1081
1081
|
<!-- callidescope:end -->
|
|
@@ -1204,14 +1204,16 @@ graph LR
|
|
|
1204
1204
|
file_codependix_config_ts["codependix.config.ts"]
|
|
1205
1205
|
file_codometer_config_ts["codometer.config.ts"]
|
|
1206
1206
|
file_eslint_config_ts["eslint.config.ts"]
|
|
1207
|
-
|
|
1207
|
+
file_src_codometer_cli_constants_ts["src/codometer-cli.constants.ts"]
|
|
1208
|
+
file_src_codometer_cli_main_end_to_end_test_ts["src/codometer-cli.main.end-to-end.test.ts"]
|
|
1209
|
+
file_src_codometer_cli_main_ts["src/codometer-cli.main.ts"]
|
|
1210
|
+
file_src_codometer_cli_main_unit_test_ts["src/codometer-cli.main.unit.test.ts"]
|
|
1211
|
+
file_src_codometer_cli_module_ts["src/codometer-cli.module.ts"]
|
|
1212
|
+
file_src_codometer_cli_repl_ts["src/codometer-cli.repl.ts"]
|
|
1213
|
+
file_src_codometer_cli_repl_unit_test_ts["src/codometer-cli.repl.unit.test.ts"]
|
|
1214
|
+
file_src_codometer_cli_utilities_ts["src/codometer-cli.utilities.ts"]
|
|
1215
|
+
file_src_codometer_cli_utilities_unit_test_ts["src/codometer-cli.utilities.unit.test.ts"]
|
|
1208
1216
|
file_src_index_ts["src/index.ts"]
|
|
1209
|
-
file_src_main_end_to_end_test_ts["src/main.end-to-end.test.ts"]
|
|
1210
|
-
file_src_main_module_ts["src/main.module.ts"]
|
|
1211
|
-
file_src_main_ts["src/main.ts"]
|
|
1212
|
-
file_src_main_unit_test_ts["src/main.unit.test.ts"]
|
|
1213
|
-
file_src_main_utilities_ts["src/main.utilities.ts"]
|
|
1214
|
-
file_src_main_utilities_unit_test_ts["src/main.utilities.unit.test.ts"]
|
|
1215
1217
|
file_src_modules_changes_changes_command_ts["src/modules/changes/changes.command.ts"]
|
|
1216
1218
|
file_src_modules_changes_changes_command_unit_test_ts["src/modules/changes/changes.command.unit.test.ts"]
|
|
1217
1219
|
file_src_modules_changes_changes_constants_ts["src/modules/changes/changes.constants.ts"]
|
|
@@ -1228,8 +1230,6 @@ graph LR
|
|
|
1228
1230
|
file_src_modules_measure_measure_constants_ts["src/modules/measure/measure.constants.ts"]
|
|
1229
1231
|
file_src_modules_measure_measure_module_ts["src/modules/measure/measure.module.ts"]
|
|
1230
1232
|
file_src_modules_measure_measure_types_ts["src/modules/measure/measure.types.ts"]
|
|
1231
|
-
file_src_repl_ts["src/repl.ts"]
|
|
1232
|
-
file_src_repl_unit_test_ts["src/repl.unit.test.ts"]
|
|
1233
1233
|
file_testing_fixture_tree_ts["testing/fixture-tree.ts"]
|
|
1234
1234
|
file_testing_mocks_ts["testing/mocks.ts"]
|
|
1235
1235
|
file_testing_setup_ts["testing/setup.ts"]
|
|
@@ -1237,15 +1237,16 @@ graph LR
|
|
|
1237
1237
|
file_testing_vite_library_config_integration_test_ts["testing/vite-library-config.integration.test.ts"]
|
|
1238
1238
|
file_vite_config_ts["vite.config.ts"]
|
|
1239
1239
|
file_vitest_config_ts["vitest.config.ts"]
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1240
|
+
file_src_codometer_cli_main_end_to_end_test_ts --> file_src_codometer_cli_constants_ts
|
|
1241
|
+
file_src_codometer_cli_main_end_to_end_test_ts --> file_testing_fixture_tree_ts
|
|
1242
|
+
file_src_codometer_cli_main_ts --> file_src_codometer_cli_module_ts
|
|
1243
|
+
file_src_codometer_cli_main_ts --> file_src_codometer_cli_utilities_ts
|
|
1244
|
+
file_src_codometer_cli_module_ts --> file_src_codometer_cli_constants_ts
|
|
1245
|
+
file_src_codometer_cli_module_ts --> file_src_modules_changes_changes_module_ts
|
|
1246
|
+
file_src_codometer_cli_module_ts --> file_src_modules_configuration_configuration_module_ts
|
|
1247
|
+
file_src_codometer_cli_module_ts --> file_src_modules_measure_measure_module_ts
|
|
1248
|
+
file_src_codometer_cli_repl_ts --> file_src_codometer_cli_module_ts
|
|
1249
|
+
file_src_codometer_cli_utilities_unit_test_ts --> file_src_codometer_cli_utilities_ts
|
|
1249
1250
|
file_src_modules_changes_changes_command_ts --> file_src_modules_changes_changes_types_ts
|
|
1250
1251
|
file_src_modules_changes_changes_command_unit_test_ts --> file_src_modules_changes_changes_command_ts
|
|
1251
1252
|
file_src_modules_changes_changes_module_ts --> file_src_modules_changes_changes_command_ts
|
|
@@ -1253,14 +1254,13 @@ graph LR
|
|
|
1253
1254
|
file_src_modules_configuration_configuration_command_ts --> file_src_modules_configuration_configuration_types_ts
|
|
1254
1255
|
file_src_modules_configuration_configuration_command_unit_test_ts --> file_src_modules_configuration_configuration_command_ts
|
|
1255
1256
|
file_src_modules_configuration_configuration_module_ts --> file_src_modules_configuration_configuration_command_ts
|
|
1256
|
-
file_src_modules_measure_measure_command_integration_test_ts -->
|
|
1257
|
+
file_src_modules_measure_measure_command_integration_test_ts --> file_src_codometer_cli_module_ts
|
|
1257
1258
|
file_src_modules_measure_measure_command_integration_test_ts --> file_src_modules_measure_measure_command_ts
|
|
1258
1259
|
file_src_modules_measure_measure_command_integration_test_ts --> file_testing_fixture_tree_ts
|
|
1259
1260
|
file_src_modules_measure_measure_command_ts --> file_src_modules_measure_measure_types_ts
|
|
1260
1261
|
file_src_modules_measure_measure_command_unit_test_ts --> file_src_modules_measure_measure_command_ts
|
|
1261
1262
|
file_src_modules_measure_measure_command_unit_test_ts --> file_testing_mocks_ts
|
|
1262
1263
|
file_src_modules_measure_measure_module_ts --> file_src_modules_measure_measure_command_ts
|
|
1263
|
-
file_src_repl_ts --> file_src_main_module_ts
|
|
1264
1264
|
file_testing_vite_library_config_integration_test_ts --> file_vite_config_ts
|
|
1265
1265
|
```
|
|
1266
1266
|
<!-- codependix:end name="codependix-file-imports" -->
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import k from "
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { Command as e, CommandRunner as t, Option as n } from "nest-commander";
|
|
2
|
+
import { ConsoleLogger as r, Global as i, Injectable as a, Module as o, Scope as s } from "@nestjs/common";
|
|
3
|
+
import { existsSync as c, mkdirSync as l } from "node:fs";
|
|
4
|
+
import u from "node:path";
|
|
5
|
+
import d from "pino";
|
|
6
|
+
import { ConfigurationModule as f, ConfigurationService as p, FORMAT_NAMES as m } from "@codometer/configuration";
|
|
7
|
+
import { DiscoveryModule as h, MeasureModule as g, MeasureService as _ } from "@codometer/measurement";
|
|
8
|
+
import { CODOMETER_MARKERS as v, ChangesModule as y, ChangesService as b, ConfigurationListingModule as ee, ConfigurationListingService as x, DeliveryModule as te, DeliveryService as S, DestinationsModule as C, DestinationsService as w, DocumentsModule as T, DocumentsService as E, JsonModule as D, MarkdownModule as ne, RenderConfigurationService as O, RenderModule as k, RenderService as A, ReportModule as j, ReportService as M } from "@codometer/output";
|
|
9
|
+
import { ConfigModule as re } from "@nestjs/config";
|
|
10
|
+
import { DiscoveryModule as ie } from "@nestjs/core";
|
|
11
|
+
import { z as ae } from "zod";
|
|
12
12
|
//#region \0rolldown/runtime.js
|
|
13
|
-
var
|
|
13
|
+
var N = Object.defineProperty, __name = (e, t) => N(e, "name", {
|
|
14
14
|
value: t,
|
|
15
15
|
configurable: !0
|
|
16
|
-
}),
|
|
16
|
+
}), P = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, F = /^([A-Za-z]+)/, I = /* @__PURE__ */ new Set([
|
|
17
17
|
"built",
|
|
18
18
|
"cut",
|
|
19
19
|
"found",
|
|
@@ -57,7 +57,7 @@ function __decorate(e, t, n, r) {
|
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region projects/logging/src/modules/logger/logger.service.ts
|
|
60
|
-
var R, z = class LoggerService extends
|
|
60
|
+
var R, z = class LoggerService extends r {
|
|
61
61
|
static {
|
|
62
62
|
R = this;
|
|
63
63
|
}
|
|
@@ -70,7 +70,7 @@ var R, z = class LoggerService extends te {
|
|
|
70
70
|
child = R.root;
|
|
71
71
|
static createRootLogger() {
|
|
72
72
|
let e = process.env.LOG_LEVEL ?? "info";
|
|
73
|
-
return R.isProduction ? R.writesToStandardError ?
|
|
73
|
+
return R.isProduction ? R.writesToStandardError ? d({ level: e }, d.destination(2)) : d({ level: e }) : d({
|
|
74
74
|
level: e,
|
|
75
75
|
transport: {
|
|
76
76
|
options: {
|
|
@@ -113,7 +113,7 @@ var R, z = class LoggerService extends te {
|
|
|
113
113
|
return t.endsWith("ing") || t.endsWith("ed") || I.has(t);
|
|
114
114
|
}
|
|
115
115
|
parseMessage(e) {
|
|
116
|
-
let t = String(e), n =
|
|
116
|
+
let t = String(e), n = P.exec(t), r = n?.[1];
|
|
117
117
|
return r === void 0 ? {
|
|
118
118
|
emoji: void 0,
|
|
119
119
|
text: t
|
|
@@ -136,8 +136,8 @@ var R, z = class LoggerService extends te {
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
createTimestampedOutputLogFilePath(e) {
|
|
139
|
-
let t =
|
|
140
|
-
return
|
|
139
|
+
let t = u.join(process.cwd(), "output");
|
|
140
|
+
return c(t) || l(t, { recursive: !0 }), u.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
|
|
141
141
|
}
|
|
142
142
|
debug(e, t, n) {
|
|
143
143
|
let r = this.parseMessage(e);
|
|
@@ -189,19 +189,19 @@ var R, z = class LoggerService extends te {
|
|
|
189
189
|
}), r.text);
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
z = R = __decorate([
|
|
192
|
+
z = R = __decorate([a({ scope: s.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], z);
|
|
193
193
|
//#endregion
|
|
194
194
|
//#region projects/logging/src/modules/logger/logger.module.ts
|
|
195
195
|
var B = class LoggerModule {};
|
|
196
|
-
B = __decorate([
|
|
196
|
+
B = __decorate([i(), o({
|
|
197
197
|
controllers: [],
|
|
198
198
|
exports: [z],
|
|
199
199
|
imports: [],
|
|
200
200
|
providers: [z]
|
|
201
201
|
})], B);
|
|
202
202
|
//#endregion
|
|
203
|
-
//#region projects/ic-suite/codometer/codometer-cli/src/constants.ts
|
|
204
|
-
var V =
|
|
203
|
+
//#region projects/ic-suite/codometer/codometer-cli/src/codometer-cli.constants.ts
|
|
204
|
+
var V = ae.object({}), H, U = H = class ChangesCommand extends t {
|
|
205
205
|
configurationService;
|
|
206
206
|
changesService;
|
|
207
207
|
documentsService;
|
|
@@ -246,12 +246,12 @@ var V = j.object({}), H, U = H = class ChangesCommand extends N {
|
|
|
246
246
|
output: this.configurationService.parseOptionalOption(t.output)
|
|
247
247
|
},
|
|
248
248
|
label: "codometer changes",
|
|
249
|
-
markers:
|
|
249
|
+
markers: v
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
__decorate([
|
|
254
|
-
|
|
254
|
+
n({
|
|
255
255
|
description: "Directory holding a baseline snapshot of the reports",
|
|
256
256
|
flags: "--baseline [baseline]"
|
|
257
257
|
}),
|
|
@@ -259,7 +259,7 @@ __decorate([
|
|
|
259
259
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
260
260
|
__decorateMetadata("design:returntype", Object)
|
|
261
261
|
], U.prototype, "parseBaseline", null), __decorate([
|
|
262
|
-
|
|
262
|
+
n({
|
|
263
263
|
description: "Run URL the baseline came from",
|
|
264
264
|
flags: "--baseline-url [baselineUrl]"
|
|
265
265
|
}),
|
|
@@ -267,7 +267,7 @@ __decorate([
|
|
|
267
267
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
268
268
|
__decorateMetadata("design:returntype", Object)
|
|
269
269
|
], U.prototype, "parseBaselineUrl", null), __decorate([
|
|
270
|
-
|
|
270
|
+
n({
|
|
271
271
|
description: "Directory to look for codometer reports in",
|
|
272
272
|
flags: "-d, --directory [directory]"
|
|
273
273
|
}),
|
|
@@ -275,7 +275,7 @@ __decorate([
|
|
|
275
275
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
276
276
|
__decorateMetadata("design:returntype", String)
|
|
277
277
|
], U.prototype, "parseDirectory", null), __decorate([
|
|
278
|
-
|
|
278
|
+
n({
|
|
279
279
|
description: "Markdown document to splice the report into",
|
|
280
280
|
flags: "--markdown [markdown]"
|
|
281
281
|
}),
|
|
@@ -283,7 +283,7 @@ __decorate([
|
|
|
283
283
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
284
284
|
__decorateMetadata("design:returntype", Object)
|
|
285
285
|
], U.prototype, "parseMarkdown", null), __decorate([
|
|
286
|
-
|
|
286
|
+
n({
|
|
287
287
|
description: "File to write the report to",
|
|
288
288
|
flags: "--output [output]"
|
|
289
289
|
}),
|
|
@@ -291,37 +291,37 @@ __decorate([
|
|
|
291
291
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
292
292
|
__decorateMetadata("design:returntype", Object)
|
|
293
293
|
], U.prototype, "parseOutput", null), U = H = __decorate([
|
|
294
|
-
|
|
294
|
+
e({
|
|
295
295
|
description: "Report codometer's changes against a baseline",
|
|
296
296
|
name: "changes"
|
|
297
297
|
}),
|
|
298
|
-
|
|
298
|
+
a(),
|
|
299
299
|
__decorateMetadata("design:paramtypes", [
|
|
300
|
-
|
|
301
|
-
c === void 0 ? Object : c,
|
|
302
|
-
g === void 0 ? Object : g,
|
|
300
|
+
p === void 0 ? Object : p,
|
|
303
301
|
b === void 0 ? Object : b,
|
|
302
|
+
E === void 0 ? Object : E,
|
|
303
|
+
A === void 0 ? Object : A,
|
|
304
304
|
z === void 0 ? Object : z
|
|
305
305
|
])
|
|
306
306
|
], U);
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region projects/ic-suite/codometer/codometer-cli/src/modules/changes/changes.module.ts
|
|
309
309
|
var W = class ChangesModule {};
|
|
310
|
-
W = __decorate([
|
|
310
|
+
W = __decorate([o({
|
|
311
311
|
controllers: [],
|
|
312
312
|
exports: [U],
|
|
313
313
|
imports: [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
314
|
+
y,
|
|
315
|
+
f,
|
|
316
|
+
T,
|
|
317
317
|
B,
|
|
318
|
-
|
|
318
|
+
k
|
|
319
319
|
],
|
|
320
320
|
providers: [U]
|
|
321
321
|
})], W);
|
|
322
322
|
//#endregion
|
|
323
323
|
//#region projects/ic-suite/codometer/codometer-cli/src/modules/configuration/configuration.constants.ts
|
|
324
|
-
var G = ["json", "markdown"], K = "markdown", q, J = q = class ConfigurationCommand extends
|
|
324
|
+
var G = ["json", "markdown"], K = "markdown", q, J = q = class ConfigurationCommand extends t {
|
|
325
325
|
codometerConfigurationService;
|
|
326
326
|
configurationService;
|
|
327
327
|
renderConfigurationService;
|
|
@@ -344,7 +344,7 @@ var G = ["json", "markdown"], K = "markdown", q, J = q = class ConfigurationComm
|
|
|
344
344
|
async run(e, t = {}) {
|
|
345
345
|
let n = t.format ?? "markdown";
|
|
346
346
|
if (!G.includes(n)) throw Error(`--format does not accept "${n}". It takes one of ${G.join(" and ")}.`);
|
|
347
|
-
let r =
|
|
347
|
+
let r = u.resolve(t.directory ?? process.cwd()), { described: i, rootError: a } = await this.configurationService.describeConfigurations({
|
|
348
348
|
configurationPath: t.config,
|
|
349
349
|
workingDirectory: r
|
|
350
350
|
});
|
|
@@ -363,7 +363,7 @@ var G = ["json", "markdown"], K = "markdown", q, J = q = class ConfigurationComm
|
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
__decorate([
|
|
366
|
-
|
|
366
|
+
n({
|
|
367
367
|
description: "Path to the configuration file answering for the directory being listed",
|
|
368
368
|
flags: "--config [config]"
|
|
369
369
|
}),
|
|
@@ -371,7 +371,7 @@ __decorate([
|
|
|
371
371
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
372
372
|
__decorateMetadata("design:returntype", Object)
|
|
373
373
|
], J.prototype, "parseConfig", null), __decorate([
|
|
374
|
-
|
|
374
|
+
n({
|
|
375
375
|
description: "Directory to look for configuration files beneath",
|
|
376
376
|
flags: "-d, --directory [directory]"
|
|
377
377
|
}),
|
|
@@ -379,7 +379,7 @@ __decorate([
|
|
|
379
379
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
380
380
|
__decorateMetadata("design:returntype", String)
|
|
381
381
|
], J.prototype, "parseDirectory", null), __decorate([
|
|
382
|
-
|
|
382
|
+
n({
|
|
383
383
|
description: `Output format, one of ${G.join(", ")}`,
|
|
384
384
|
flags: "-f, --format [format]"
|
|
385
385
|
}),
|
|
@@ -387,7 +387,7 @@ __decorate([
|
|
|
387
387
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
388
388
|
__decorateMetadata("design:returntype", String)
|
|
389
389
|
], J.prototype, "parseFormat", null), __decorate([
|
|
390
|
-
|
|
390
|
+
n({
|
|
391
391
|
description: "List only the configured limits",
|
|
392
392
|
flags: "--limits"
|
|
393
393
|
}),
|
|
@@ -395,30 +395,30 @@ __decorate([
|
|
|
395
395
|
__decorateMetadata("design:paramtypes", []),
|
|
396
396
|
__decorateMetadata("design:returntype", Boolean)
|
|
397
397
|
], J.prototype, "parseLimits", null), J = q = __decorate([
|
|
398
|
-
|
|
398
|
+
e({
|
|
399
399
|
description: "List the codometer configuration found beneath a directory",
|
|
400
400
|
name: "configuration"
|
|
401
401
|
}),
|
|
402
|
-
|
|
402
|
+
a(),
|
|
403
403
|
__decorateMetadata("design:paramtypes", [
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
404
|
+
p === void 0 ? Object : p,
|
|
405
|
+
x === void 0 ? Object : x,
|
|
406
|
+
O === void 0 ? Object : O,
|
|
407
407
|
z === void 0 ? Object : z
|
|
408
408
|
])
|
|
409
409
|
], J);
|
|
410
410
|
//#endregion
|
|
411
411
|
//#region projects/ic-suite/codometer/codometer-cli/src/modules/configuration/configuration.module.ts
|
|
412
412
|
var Y = class ConfigurationModule {};
|
|
413
|
-
Y = __decorate([
|
|
413
|
+
Y = __decorate([o({
|
|
414
414
|
controllers: [],
|
|
415
415
|
exports: [J],
|
|
416
|
-
imports: [
|
|
416
|
+
imports: [f, ee],
|
|
417
417
|
providers: [J]
|
|
418
418
|
})], Y);
|
|
419
419
|
//#endregion
|
|
420
420
|
//#region projects/ic-suite/codometer/codometer-cli/src/modules/measure/measure.command.ts
|
|
421
|
-
var X, Z = X = class MeasureCommand extends
|
|
421
|
+
var X, Z = X = class MeasureCommand extends t {
|
|
422
422
|
configurationService;
|
|
423
423
|
measureService;
|
|
424
424
|
deliveryService;
|
|
@@ -503,7 +503,7 @@ var X, Z = X = class MeasureCommand extends N {
|
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
505
|
resolveWorkingDirectory() {
|
|
506
|
-
let e =
|
|
506
|
+
let e = u.resolve(process.cwd());
|
|
507
507
|
return this.logger.debug("🚀 Started the measurement run", void 0, { directory: e }), e;
|
|
508
508
|
}
|
|
509
509
|
parseCheck(e) {
|
|
@@ -553,7 +553,7 @@ var X, Z = X = class MeasureCommand extends N {
|
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
555
|
__decorate([
|
|
556
|
-
|
|
556
|
+
n({
|
|
557
557
|
description: "Fail on a comma-separated set drawn from \"reports\" and \"limits\"",
|
|
558
558
|
flags: "--check [check]"
|
|
559
559
|
}),
|
|
@@ -561,7 +561,7 @@ __decorate([
|
|
|
561
561
|
__decorateMetadata("design:paramtypes", [String]),
|
|
562
562
|
__decorateMetadata("design:returntype", String)
|
|
563
563
|
], Z.prototype, "parseCheck", null), __decorate([
|
|
564
|
-
|
|
564
|
+
n({
|
|
565
565
|
description: "Path to the codometer configuration file",
|
|
566
566
|
flags: "--config [config]"
|
|
567
567
|
}),
|
|
@@ -569,15 +569,15 @@ __decorate([
|
|
|
569
569
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
570
570
|
__decorateMetadata("design:returntype", Object)
|
|
571
571
|
], Z.prototype, "parseConfig", null), __decorate([
|
|
572
|
-
|
|
573
|
-
description: `What to print to standard output, one of ${
|
|
572
|
+
n({
|
|
573
|
+
description: `What to print to standard output, one of ${m.join(" and ")}`,
|
|
574
574
|
flags: "-f, --format <format>"
|
|
575
575
|
}),
|
|
576
576
|
__decorateMetadata("design:type", Function),
|
|
577
577
|
__decorateMetadata("design:paramtypes", [String]),
|
|
578
578
|
__decorateMetadata("design:returntype", String)
|
|
579
579
|
], Z.prototype, "parseFormat", null), __decorate([
|
|
580
|
-
|
|
580
|
+
n({
|
|
581
581
|
description: "Glob array measured in place of every configured input, with no configured input — not even the built-in codebase one — active",
|
|
582
582
|
flags: "--inputs [globs...]"
|
|
583
583
|
}),
|
|
@@ -585,7 +585,7 @@ __decorate([
|
|
|
585
585
|
__decorateMetadata("design:paramtypes", [String, Array]),
|
|
586
586
|
__decorateMetadata("design:returntype", Array)
|
|
587
587
|
], Z.prototype, "parseInputs", null), __decorate([
|
|
588
|
-
|
|
588
|
+
n({
|
|
589
589
|
description: "Write the JSON report, at the given path or the configured one",
|
|
590
590
|
flags: "--output-json [outputJson]"
|
|
591
591
|
}),
|
|
@@ -593,7 +593,7 @@ __decorate([
|
|
|
593
593
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
594
594
|
__decorateMetadata("design:returntype", Object)
|
|
595
595
|
], Z.prototype, "parseOutputJson", null), __decorate([
|
|
596
|
-
|
|
596
|
+
n({
|
|
597
597
|
description: "Write the markdown badge block, at the given path or the configured one",
|
|
598
598
|
flags: "--output-markdown [outputMarkdown]"
|
|
599
599
|
}),
|
|
@@ -601,54 +601,54 @@ __decorate([
|
|
|
601
601
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
602
602
|
__decorateMetadata("design:returntype", Object)
|
|
603
603
|
], Z.prototype, "parseOutputMarkdown", null), Z = X = __decorate([
|
|
604
|
-
|
|
604
|
+
e({
|
|
605
605
|
description: "Measure a directory and produce every resolved output",
|
|
606
606
|
name: "measure"
|
|
607
607
|
}),
|
|
608
|
-
|
|
608
|
+
a(),
|
|
609
609
|
__decorateMetadata("design:paramtypes", [
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
f === void 0 ? Object : f,
|
|
610
|
+
p === void 0 ? Object : p,
|
|
611
|
+
_ === void 0 ? Object : _,
|
|
613
612
|
S === void 0 ? Object : S,
|
|
614
|
-
|
|
613
|
+
M === void 0 ? Object : M,
|
|
614
|
+
w === void 0 ? Object : w,
|
|
615
615
|
z === void 0 ? Object : z
|
|
616
616
|
])
|
|
617
617
|
], Z);
|
|
618
618
|
//#endregion
|
|
619
619
|
//#region projects/ic-suite/codometer/codometer-cli/src/modules/measure/measure.module.ts
|
|
620
620
|
var Q = class MeasureModule {};
|
|
621
|
-
Q = __decorate([
|
|
621
|
+
Q = __decorate([o({
|
|
622
622
|
controllers: [],
|
|
623
623
|
exports: [Z],
|
|
624
624
|
imports: [
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
625
|
+
g,
|
|
626
|
+
f,
|
|
627
|
+
te,
|
|
628
|
+
C,
|
|
629
629
|
B,
|
|
630
|
-
|
|
630
|
+
j
|
|
631
631
|
],
|
|
632
632
|
providers: [Z]
|
|
633
633
|
})], Q);
|
|
634
634
|
//#endregion
|
|
635
|
-
//#region projects/ic-suite/codometer/codometer-cli/src/
|
|
635
|
+
//#region projects/ic-suite/codometer/codometer-cli/src/codometer-cli.module.ts
|
|
636
636
|
var $ = class MainModule {};
|
|
637
|
-
$ = __decorate([
|
|
638
|
-
|
|
637
|
+
$ = __decorate([o({ imports: [
|
|
638
|
+
re.forRoot({
|
|
639
639
|
envFilePath: ".env",
|
|
640
640
|
isGlobal: !0,
|
|
641
641
|
validate: (e) => V.parse(e)
|
|
642
642
|
}),
|
|
643
|
-
|
|
643
|
+
ie,
|
|
644
644
|
B,
|
|
645
645
|
W,
|
|
646
646
|
Y,
|
|
647
647
|
Q,
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
648
|
+
h,
|
|
649
|
+
f,
|
|
650
|
+
D,
|
|
651
|
+
ne
|
|
652
652
|
] })], $);
|
|
653
653
|
//#endregion
|
|
654
654
|
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 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as e, t } from "../
|
|
3
|
-
import { CommandFactory as n } from "nest-commander";
|
|
2
|
+
import { c as e, t } from "../codometer-cli.module-CB9I6zxo.js";
|
|
4
3
|
import "reflect-metadata";
|
|
5
|
-
|
|
4
|
+
import { CommandFactory as n } from "nest-commander";
|
|
5
|
+
//#region projects/ic-suite/codometer/codometer-cli/src/codometer-cli.utilities.ts
|
|
6
6
|
function withDefaultCommand(e) {
|
|
7
7
|
let t = /* @__PURE__ */ new Set([
|
|
8
8
|
"changes",
|
|
@@ -13,7 +13,7 @@ function withDefaultCommand(e) {
|
|
|
13
13
|
return r !== void 0 && (t.has(r) || n.has(r)) ? [...e] : ["measure", ...e];
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region projects/ic-suite/codometer/codometer-cli/src/main.ts
|
|
16
|
+
//#region projects/ic-suite/codometer/codometer-cli/src/codometer-cli.main.ts
|
|
17
17
|
async function main() {
|
|
18
18
|
e.logToStandardError();
|
|
19
19
|
let r = new e();
|
package/dist/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as ChangesCommand, o as ChangesModule, a as ConfigurationCommand, i as ConfigurationModule, t as MainModule, r as MeasureCommand, n as MeasureModule } from "../
|
|
1
|
+
export { s as ChangesCommand, o as ChangesModule, a as ConfigurationCommand, i as ConfigurationModule, t as MainModule, r as MeasureCommand, n as MeasureModule } from "../codometer-cli.module-CB9I6zxo.js";
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jimmy Paolini",
|
|
3
3
|
"bin": {
|
|
4
|
-
"codometer": "./dist/src/main.js"
|
|
4
|
+
"codometer": "./dist/src/codometer-cli.main.js"
|
|
5
5
|
},
|
|
6
6
|
"bugs": {
|
|
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.26",
|
|
11
|
+
"@codometer/core": "0.0.26",
|
|
12
|
+
"@codometer/measurement": "0.0.26",
|
|
13
|
+
"@codometer/output": "0.0.26",
|
|
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",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"strict": true
|
|
76
76
|
},
|
|
77
77
|
"types": "./dist/src/index.d.ts",
|
|
78
|
-
"version": "0.0.
|
|
78
|
+
"version": "0.0.27"
|
|
79
79
|
}
|
|
File without changes
|