@conformetry/cli 0.0.15 β 0.0.16
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 +14 -0
- package/README.md +69 -69
- package/dist/{main.module-D7s1s-1a.js β main.module-Dk88Dy1P.js} +145 -158
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.js +1 -2
- package/dist/src/main.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 0.0.16 (2026-10-13)
|
|
2
|
+
|
|
3
|
+
### π©Ή Fixes
|
|
4
|
+
|
|
5
|
+
- **caelundas,conformetry:** π require an explicit directory instead of defaulting the destination ([#1395](https://github.com/organizzolini/codebase/pull/1395))
|
|
6
|
+
|
|
7
|
+
### π§± Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated conformetry-configuration to 0.0.16
|
|
10
|
+
- Updated conformetry-generation to 0.0.16
|
|
11
|
+
- Updated conformetry-validation to 0.0.15
|
|
12
|
+
- Updated conformetry-output to 0.0.15
|
|
13
|
+
- Updated conformetry-core to 0.0.15
|
|
14
|
+
|
|
1
15
|
## 0.0.15 (2026-10-12)
|
|
2
16
|
|
|
3
17
|
### π§± Updated Dependencies
|
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ Renders one template folder into a target directory.
|
|
|
68
68
|
| ---- | ------- |
|
|
69
69
|
| `--template [name]` | Which template from the registry to render. Asked for when omitted |
|
|
70
70
|
| `--config [path]` | Configuration file to read. Defaults to `configuration/conformetry.config.ts` |
|
|
71
|
-
| `--directory [path]` | Where to write the rendered files |
|
|
71
|
+
| `--directory [path]` | Where to write the rendered files. Required: the run is refused without it |
|
|
72
72
|
|
|
73
73
|
A template's own inputs are passed as flags alongside these:
|
|
74
74
|
|
|
@@ -595,28 +595,28 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
595
595
|
β³ Writes every instance found, filtered to the given templates.
|
|
596
596
|
ββ> ConfigurationService.resolveInventoriedInstances(β¦): InventoriedInstance[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:345]
|
|
597
597
|
β³ Lists every instance found, paired with the templates that explain it.
|
|
598
|
-
ββ> InstanceDiscoveryService.resolveInventoriedInstances(args: ResolveInventoryArguments): InventoriedInstance[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
598
|
+
ββ> InstanceDiscoveryService.resolveInventoriedInstances(args: ResolveInventoryArguments): InventoriedInstance[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:191]
|
|
599
599
|
β³ Lists every instance found, paired with the templates that explain it. `templateNames` narrows the pairing rather thanβ¦
|
|
600
|
-
ββ> InstanceDiscoveryService.takeInventory(β¦): { templates: TemplateDefinition[]; weighed: { instance: Instance; pairings: InventoriedPairing[]; }[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
600
|
+
ββ> InstanceDiscoveryService.takeInventory(β¦): { templates: TemplateDefinition[]; weighed: { instance: Instance; pairings: InventoriedPairing[]; }[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:255]
|
|
601
601
|
β³ Weighs every instance the globs find against every declared template.
|
|
602
|
-
ββ> InstanceDiscoveryService.map(β¦)(instance: Instance): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
603
|
-
ββ> InstanceDiscoveryService.weighInstance(β¦): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
602
|
+
ββ> InstanceDiscoveryService.map(β¦)(instance: Instance): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:277]
|
|
603
|
+
ββ> InstanceDiscoveryService.weighInstance(β¦): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:56]
|
|
604
604
|
β³ Weighs one instance against every template, best fit first.
|
|
605
|
-
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
605
|
+
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:154]
|
|
606
606
|
β³ Weighs every template that shares at least one file with the instance, best-first.
|
|
607
|
-
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition;
|
|
608
|
-
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
607
|
+
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:160]
|
|
608
|
+
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:121]
|
|
609
609
|
β³ Counts how many of a template's files the instance path already has.
|
|
610
|
-
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
611
|
-
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
610
|
+
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:130]
|
|
611
|
+
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:179]
|
|
612
612
|
β³ Maps a template file path to the instance file path it governs.
|
|
613
613
|
ββ> RenderingService.renderPath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:142]
|
|
614
614
|
β³ Renders a template path with mustache, the same way contents are rendered.
|
|
615
615
|
ββ> RenderingService.assertEverySubstitutionSupplied(β¦): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:35]
|
|
616
616
|
β³ Refuses to render a template asking for a value nobody supplied.
|
|
617
|
-
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
617
|
+
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:61]
|
|
618
618
|
β³ Every placeholder a template interpolates, deduplicated.
|
|
619
|
-
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
619
|
+
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:63]
|
|
620
620
|
```
|
|
621
621
|
|
|
622
622
|
**2. `TemplatesCommand.run`** β depth β₯ 15 Β· decorated-method
|
|
@@ -626,58 +626,58 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
626
626
|
β³ Writes every declared template, filtered to the given instances.
|
|
627
627
|
ββ> ConfigurationService.resolveInventoriedTemplates(β¦): InventoriedTemplate[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:352]
|
|
628
628
|
β³ Lists every template declared, paired with the instances it explains.
|
|
629
|
-
ββ> InstanceDiscoveryService.resolveInventoriedTemplates(args: ResolveInventoryArguments): InventoriedTemplate[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
629
|
+
ββ> InstanceDiscoveryService.resolveInventoriedTemplates(args: ResolveInventoryArguments): InventoriedTemplate[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:216]
|
|
630
630
|
β³ Lists every template declared, paired with the instances it explains. `instancePatterns` narrows which instances areβ¦
|
|
631
|
-
ββ> InstanceDiscoveryService.takeInventory(β¦): { templates: TemplateDefinition[]; weighed: { instance: Instance; pairings: InventoriedPairing[]; }[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
631
|
+
ββ> InstanceDiscoveryService.takeInventory(β¦): { templates: TemplateDefinition[]; weighed: { instance: Instance; pairings: InventoriedPairing[]; }[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:255]
|
|
632
632
|
β³ Weighs every instance the globs find against every declared template.
|
|
633
|
-
ββ> InstanceDiscoveryService.map(β¦)(instance: Instance): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
634
|
-
ββ> InstanceDiscoveryService.weighInstance(β¦): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
633
|
+
ββ> InstanceDiscoveryService.map(β¦)(instance: Instance): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:277]
|
|
634
|
+
ββ> InstanceDiscoveryService.weighInstance(β¦): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:56]
|
|
635
635
|
β³ Weighs one instance against every template, best fit first.
|
|
636
|
-
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
636
|
+
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:154]
|
|
637
637
|
β³ Weighs every template that shares at least one file with the instance, best-first.
|
|
638
|
-
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition;
|
|
639
|
-
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
638
|
+
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:160]
|
|
639
|
+
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:121]
|
|
640
640
|
β³ Counts how many of a template's files the instance path already has.
|
|
641
|
-
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
642
|
-
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
641
|
+
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:130]
|
|
642
|
+
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:179]
|
|
643
643
|
β³ Maps a template file path to the instance file path it governs.
|
|
644
644
|
ββ> RenderingService.renderPath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:142]
|
|
645
645
|
β³ Renders a template path with mustache, the same way contents are rendered.
|
|
646
646
|
ββ> RenderingService.assertEverySubstitutionSupplied(β¦): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:35]
|
|
647
647
|
β³ Refuses to render a template asking for a value nobody supplied.
|
|
648
|
-
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
648
|
+
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:61]
|
|
649
649
|
β³ Every placeholder a template interpolates, deduplicated.
|
|
650
|
-
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
650
|
+
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:63]
|
|
651
651
|
```
|
|
652
652
|
|
|
653
653
|
**3. `ValidateCommand.run`** β depth β₯ 14 Β· decorated-method
|
|
654
654
|
|
|
655
655
|
```text
|
|
656
|
-
π ValidateCommand.run(_passedParameters: string[], options: ValidateCommandOptions): Promise<void> [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
656
|
+
π ValidateCommand.run(_passedParameters: string[], options: ValidateCommandOptions): Promise<void> [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:364]
|
|
657
657
|
β³ Runs validation and reports every difference found.
|
|
658
|
-
ββ> ValidationService.validate(args: RunValidationArguments): RunValidationResult [packages/ic-suite/conformetry/conformetry-validation/src/modules/validation/validation.service.ts:
|
|
658
|
+
ββ> ValidationService.validate(args: RunValidationArguments): RunValidationResult [packages/ic-suite/conformetry/conformetry-validation/src/modules/validation/validation.service.ts:136]
|
|
659
659
|
β³ Validates every instance and returns the differences found.
|
|
660
660
|
ββ> ConfigurationService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:263]
|
|
661
661
|
β³ Resolves every instance to the template, or templates, that explain it.
|
|
662
|
-
ββ> InstanceDiscoveryService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
662
|
+
ββ> InstanceDiscoveryService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:95]
|
|
663
663
|
β³ Resolves every instance to the template, or templates, that explain it.
|
|
664
|
-
ββ> InstanceDiscoveryMatchingService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
664
|
+
ββ> InstanceDiscoveryMatchingService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:93]
|
|
665
665
|
β³ Resolves every instance to the template β or templates β that explain it.
|
|
666
|
-
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
666
|
+
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:154]
|
|
667
667
|
β³ Weighs every template that shares at least one file with the instance, best-first.
|
|
668
|
-
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition;
|
|
669
|
-
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
668
|
+
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:160]
|
|
669
|
+
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:121]
|
|
670
670
|
β³ Counts how many of a template's files the instance path already has.
|
|
671
|
-
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
672
|
-
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
671
|
+
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:130]
|
|
672
|
+
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:179]
|
|
673
673
|
β³ Maps a template file path to the instance file path it governs.
|
|
674
674
|
ββ> RenderingService.renderPath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:142]
|
|
675
675
|
β³ Renders a template path with mustache, the same way contents are rendered.
|
|
676
676
|
ββ> RenderingService.assertEverySubstitutionSupplied(β¦): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:35]
|
|
677
677
|
β³ Refuses to render a template asking for a value nobody supplied.
|
|
678
|
-
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
678
|
+
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:61]
|
|
679
679
|
β³ Every placeholder a template interpolates, deduplicated.
|
|
680
|
-
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
680
|
+
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:63]
|
|
681
681
|
```
|
|
682
682
|
|
|
683
683
|
<details>
|
|
@@ -736,7 +736,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
736
736
|
**7. `ValidateCommand.parseInstances`** β depth 4 Β· decorated-method
|
|
737
737
|
|
|
738
738
|
```text
|
|
739
|
-
π ValidateCommand.parseInstances(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
739
|
+
π ValidateCommand.parseInstances(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:321]
|
|
740
740
|
β³ Parses the optional instance glob override.
|
|
741
741
|
ββ> ConfigurationService.parseCommaDelimitedOption(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:271]
|
|
742
742
|
β³ Splits a comma-delimited filter option into its values.
|
|
@@ -748,7 +748,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
748
748
|
**8. `ValidateCommand.parseLanguages`** β depth 4 Β· decorated-method
|
|
749
749
|
|
|
750
750
|
```text
|
|
751
|
-
π ValidateCommand.parseLanguages(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
751
|
+
π ValidateCommand.parseLanguages(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:331]
|
|
752
752
|
β³ Parses the optional language filter.
|
|
753
753
|
ββ> ConfigurationService.parseCommaDelimitedOption(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:271]
|
|
754
754
|
β³ Splits a comma-delimited filter option into its values.
|
|
@@ -760,7 +760,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
760
760
|
**9. `ValidateCommand.parseTemplates`** β depth 4 Β· decorated-method
|
|
761
761
|
|
|
762
762
|
```text
|
|
763
|
-
π ValidateCommand.parseTemplates(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
763
|
+
π ValidateCommand.parseTemplates(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:345]
|
|
764
764
|
β³ Parses the optional template filter.
|
|
765
765
|
ββ> ConfigurationService.parseCommaDelimitedOption(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:271]
|
|
766
766
|
β³ Splits a comma-delimited filter option into its values.
|
|
@@ -772,7 +772,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
772
772
|
**10. `ValidateCommand.parseThreshold`** β depth 4 Β· decorated-method
|
|
773
773
|
|
|
774
774
|
```text
|
|
775
|
-
π ValidateCommand.parseThreshold(value: string | undefined): number | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
775
|
+
π ValidateCommand.parseThreshold(value: string | undefined): number | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:354]
|
|
776
776
|
β³ Parses the optional run-level conformance threshold.
|
|
777
777
|
ββ> ConfigurationService.parseThresholdOption(value: string | undefined): number | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:283]
|
|
778
778
|
β³ Parses a threshold option as a ratio from 0 to 1.
|
|
@@ -840,7 +840,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
840
840
|
**16. `ValidateCommand.parseConfig`** β depth 3 Β· decorated-method
|
|
841
841
|
|
|
842
842
|
```text
|
|
843
|
-
π ValidateCommand.parseConfig(value: string | undefined): string | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
843
|
+
π ValidateCommand.parseConfig(value: string | undefined): string | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:312]
|
|
844
844
|
β³ Parses the optional configuration path.
|
|
845
845
|
ββ> ConfigurationService.parseOptionalOption(value: string | undefined): string | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:278]
|
|
846
846
|
β³ Trims an optional string option, treating blank as absent.
|
|
@@ -855,7 +855,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
855
855
|
| Callable | Breadth | Calls directly | Location |
|
|
856
856
|
| --- | --- | --- | --- |
|
|
857
857
|
| `GenerateCommand.generate` | 9 | `GenerateCommand.rejectRemovedGeneratorOption`, `ConfigurationService.loadConformetryConfiguration`, `GenerateCommand.resolveTemplateName`, `GenerateCommand.find(β¦)`, `unknownTemplateError`, `GenerateCommand.map(β¦)`, `ConfigurationService.resolveGeneratorInputs`, `GenerationService.runGenerator`, `GenerateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:64` |
|
|
858
|
-
| `ValidateCommand.run` | 7 | `ConfigurationService.loadConformetryConfiguration`, `ValidateCommand.selectTemplates`, `ValidateCommand.selectInstances`, `ValidateCommand.reportEmptySelection`, `ValidationService.validate`, `ConfigurationService.collectTemplates`, `ValidateCommand.reportResult` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
858
|
+
| `ValidateCommand.run` | 7 | `ConfigurationService.loadConformetryConfiguration`, `ValidateCommand.selectTemplates`, `ValidateCommand.selectInstances`, `ValidateCommand.reportEmptySelection`, `ValidationService.validate`, `ConfigurationService.collectTemplates`, `ValidateCommand.reportResult` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:364` |
|
|
859
859
|
| `GenerateCommand.resolveTemplateName` | 4 | `GenerateCommand.map(β¦)`, `ConfigurationService.isAtTerminal`, `missingTemplateError`, `ConfigurationService.promptForTemplate` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:183` |
|
|
860
860
|
|
|
861
861
|
<details>
|
|
@@ -865,16 +865,16 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
865
865
|
| --- | --- | --- | --- |
|
|
866
866
|
| `InstancesCommand.run` | 4 | `ConfigurationService.loadConformetryConfiguration`, `InventoryService.shortenInstancePaths`, `ConfigurationService.resolveInventoriedInstances`, `InventoryService.describeInstances` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:84` |
|
|
867
867
|
| `TemplatesCommand.run` | 4 | `ConfigurationService.loadConformetryConfiguration`, `InventoryService.shortenTemplatePairings`, `ConfigurationService.resolveInventoriedTemplates`, `InventoryService.describeTemplates` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:85` |
|
|
868
|
-
| `ValidateCommand.selectInstances` | 4 | `ValidateCommand.findInstances`, `ValidateCommand.flatMap(β¦)`, `ValidateCommand.map(β¦)`, `ValidateCommand.filter(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
869
|
-
| `ValidateCommand.reportEmptySelection` | 3 | `ValidateCommand.map(β¦)`, `ValidateCommand.map(β¦)`, `ValidateCommand.filter(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
870
|
-
| `ValidateCommand.reportResult` | 3 | `ReportingService.formatReport`, `ValidateCommand.filter(β¦)`, `ValidateCommand.describeFailure` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
871
|
-
| `ValidateCommand.map(β¦)` | 3 | `ValidateCommand.find(β¦)`, `unknownTemplateError`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
868
|
+
| `ValidateCommand.selectInstances` | 4 | `ValidateCommand.findInstances`, `ValidateCommand.flatMap(β¦)`, `ValidateCommand.map(β¦)`, `ValidateCommand.filter(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:230` |
|
|
869
|
+
| `ValidateCommand.reportEmptySelection` | 3 | `ValidateCommand.map(β¦)`, `ValidateCommand.map(β¦)`, `ValidateCommand.filter(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:151` |
|
|
870
|
+
| `ValidateCommand.reportResult` | 3 | `ReportingService.formatReport`, `ValidateCommand.filter(β¦)`, `ValidateCommand.describeFailure` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:192` |
|
|
871
|
+
| `ValidateCommand.map(β¦)` | 3 | `ValidateCommand.find(β¦)`, `unknownTemplateError`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:288` |
|
|
872
872
|
| `GenerateCommand.rejectRemovedGeneratorOption` | 2 | `GenerateCommand.some(β¦)`, `removedGeneratorOptionError` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:161` |
|
|
873
873
|
| `GenerateCommand.run` | 2 | `GenerateCommand.generate`, `GenerateCommand.rejectCommandLine` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:254` |
|
|
874
874
|
| `ValidateCommand.describeFailure` | 2 | `ValidateCommand.filter(β¦)`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:73` |
|
|
875
875
|
| `ValidateCommand.findInstances` | 2 | `ValidateCommand.flatMap(β¦)`, `ConfigurationService.readWorkspaceGroups` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:97` |
|
|
876
|
-
| `ValidateCommand.promptForTemplateNames` | 2 | `ConfigurationService.isAtTerminal`, `ConfigurationService.promptForTemplates` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
877
|
-
| `ValidateCommand.selectTemplates` | 2 | `ValidateCommand.promptForTemplateNames`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
876
|
+
| `ValidateCommand.promptForTemplateNames` | 2 | `ConfigurationService.isAtTerminal`, `ConfigurationService.promptForTemplates` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:133` |
|
|
877
|
+
| `ValidateCommand.selectTemplates` | 2 | `ValidateCommand.promptForTemplateNames`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:273` |
|
|
878
878
|
| `missingTemplateError` | 1 | `InputError.constructor` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.constants.ts:15` |
|
|
879
879
|
| `GenerateCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:216` |
|
|
880
880
|
| `GenerateCommand.parseDirectory` | 1 | `ConfigurationService.parseOptionalOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:225` |
|
|
@@ -885,12 +885,12 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
885
885
|
| `TemplatesCommand.parseInstances` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:66` |
|
|
886
886
|
| `ValidateCommand.map(β¦)` | 1 | `ReportingService.formatPercentage` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:76` |
|
|
887
887
|
| `ValidateCommand.flatMap(β¦)` | 1 | `ConfigurationService.findInstances` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:105` |
|
|
888
|
-
| `ValidateCommand.filter(β¦)` | 1 | `ConfigurationService.readWorkspaceGroups` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
889
|
-
| `ValidateCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
890
|
-
| `ValidateCommand.parseInstances` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
891
|
-
| `ValidateCommand.parseLanguages` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
892
|
-
| `ValidateCommand.parseTemplates` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
893
|
-
| `ValidateCommand.parseThreshold` | 1 | `ConfigurationService.parseThresholdOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
888
|
+
| `ValidateCommand.filter(β¦)` | 1 | `ConfigurationService.readWorkspaceGroups` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:159` |
|
|
889
|
+
| `ValidateCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:312` |
|
|
890
|
+
| `ValidateCommand.parseInstances` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:321` |
|
|
891
|
+
| `ValidateCommand.parseLanguages` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:331` |
|
|
892
|
+
| `ValidateCommand.parseTemplates` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:345` |
|
|
893
|
+
| `ValidateCommand.parseThreshold` | 1 | `ConfigurationService.parseThresholdOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:354` |
|
|
894
894
|
|
|
895
895
|
</details>
|
|
896
896
|
<!-- callidescope:end -->
|
|
@@ -1094,14 +1094,14 @@ graph LR
|
|
|
1094
1094
|
|
|
1095
1095
|
### Project
|
|
1096
1096
|
|
|
1097
|
-

|
|
1098
|
+

|
|
1099
1099
|

|
|
1100
1100
|

|
|
1101
1101
|
|
|
1102
1102
|
### Measured Targets
|
|
1103
1103
|
|
|
1104
|
-

|
|
1105
1105
|
|
|
1106
1106
|
### TypeScript
|
|
1107
1107
|
|
|
@@ -1110,7 +1110,7 @@ graph LR
|
|
|
1110
1110
|

|
|
1111
1111
|

|
|
1112
1112
|

|
|
1113
|
-

|
|
1114
1114
|

|
|
1115
1115
|
|
|
1116
1116
|
### JavaScript
|
|
@@ -1120,14 +1120,14 @@ graph LR
|
|
|
1120
1120
|

|
|
1121
1121
|

|
|
1122
1122
|

|
|
1123
|
-

|
|
1124
|
+

|
|
1125
1125
|

|
|
1126
|
-

|
|
1127
1127
|

|
|
1128
|
-

|
|
1129
|
+

|
|
1130
|
+

|
|
1131
1131
|

|
|
1132
1132
|
|
|
1133
1133
|
### Python
|
|
@@ -1283,20 +1283,20 @@ graph LR
|
|
|
1283
1283
|
### Markdown
|
|
1284
1284
|
|
|
1285
1285
|

|
|
1286
|
-

|
|
1287
1287
|

|
|
1288
|
-

|
|
1289
|
+

|
|
1290
1290
|

|
|
1291
1291
|

|
|
1292
1292
|

|
|
1293
|
-

|
|
1294
|
+

|
|
1295
|
+

|
|
1296
1296
|

|
|
1297
1297
|

|
|
1298
1298
|

|
|
1299
|
-

|
|
1300
1300
|

|
|
1301
1301
|

|
|
1302
1302
|

|
|
@@ -5,16 +5,16 @@ import { existsSync as s, mkdirSync as c } from "node:fs";
|
|
|
5
5
|
import l from "node:path";
|
|
6
6
|
import u from "pino";
|
|
7
7
|
import { z as d } from "zod";
|
|
8
|
-
import { ALL_TEMPLATES_SELECTION as f, ConfigurationModule as p, ConfigurationService as m, InputError as h } from "@conformetry/configuration";
|
|
9
|
-
import { GenerationModule as
|
|
10
|
-
import { Command as
|
|
11
|
-
import { InventoryModule as
|
|
12
|
-
import { ValidationModule as
|
|
8
|
+
import { ALL_TEMPLATES_SELECTION as f, ConfigurationModule as p, ConfigurationService as m, InputError as h, missingDirectoryError as g } from "@conformetry/configuration";
|
|
9
|
+
import { GenerationModule as _, GenerationService as v } from "@conformetry/generation";
|
|
10
|
+
import { Command as y, CommandRunner as b, Option as x } from "nest-commander";
|
|
11
|
+
import { InventoryModule as S, InventoryService as C, ReportingModule as w, ReportingService as T } from "@conformetry/output";
|
|
12
|
+
import { ValidationModule as E, ValidationService as D } from "@conformetry/validation";
|
|
13
13
|
//#region \0rolldown/runtime.js
|
|
14
|
-
var
|
|
14
|
+
var O = Object.defineProperty, __name = (e, t) => O(e, "name", {
|
|
15
15
|
value: t,
|
|
16
16
|
configurable: !0
|
|
17
|
-
}),
|
|
17
|
+
}), k = /^(\p{Extended_Pictographic}οΈ?(?:β\p{Extended_Pictographic}οΈ?)*)\s+/u, A = /^([A-Za-z]+)/, j = /* @__PURE__ */ new Set([
|
|
18
18
|
"built",
|
|
19
19
|
"cut",
|
|
20
20
|
"found",
|
|
@@ -32,7 +32,7 @@ var D = Object.defineProperty, __name = (e, t) => D(e, "name", {
|
|
|
32
32
|
"split",
|
|
33
33
|
"took",
|
|
34
34
|
"wrote"
|
|
35
|
-
]),
|
|
35
|
+
]), M = /* @__PURE__ */ new Set([
|
|
36
36
|
"CommandFactory",
|
|
37
37
|
"ExceptionHandler",
|
|
38
38
|
"GraphQLModule",
|
|
@@ -44,12 +44,12 @@ var D = Object.defineProperty, __name = (e, t) => D(e, "name", {
|
|
|
44
44
|
"TypeOrmModule"
|
|
45
45
|
]);
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region \0@oxc-project+runtime@0.
|
|
47
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateMetadata.js
|
|
48
48
|
function __decorateMetadata(e, t) {
|
|
49
49
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region \0@oxc-project+runtime@0.
|
|
52
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
53
53
|
function __decorate(e, t, n, r) {
|
|
54
54
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
55
55
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
@@ -58,9 +58,9 @@ function __decorate(e, t, n, r) {
|
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region packages/logging/src/modules/logger/logger.service.ts
|
|
61
|
-
var
|
|
61
|
+
var N, P = class LoggerService extends e {
|
|
62
62
|
static {
|
|
63
|
-
|
|
63
|
+
N = this;
|
|
64
64
|
}
|
|
65
65
|
constructor() {
|
|
66
66
|
super();
|
|
@@ -68,15 +68,15 @@ var M, N = class LoggerService extends e {
|
|
|
68
68
|
static isProduction = process.env.NODE_ENV === "production";
|
|
69
69
|
static rootLogger;
|
|
70
70
|
static writesToStandardError = !1;
|
|
71
|
-
child =
|
|
71
|
+
child = N.root;
|
|
72
72
|
static createRootLogger() {
|
|
73
73
|
let e = process.env.LOG_LEVEL ?? "info";
|
|
74
|
-
return
|
|
74
|
+
return N.isProduction ? N.writesToStandardError ? u({ level: e }, u.destination(2)) : u({ level: e }) : u({
|
|
75
75
|
level: e,
|
|
76
76
|
transport: {
|
|
77
77
|
options: {
|
|
78
78
|
colorize: !0,
|
|
79
|
-
destination:
|
|
79
|
+
destination: N.writesToStandardError ? 2 : 1,
|
|
80
80
|
ignore: "pid,hostname,emoji",
|
|
81
81
|
messageFormat: "{emoji} {msg}",
|
|
82
82
|
singleLine: !0
|
|
@@ -86,14 +86,10 @@ var M, N = class LoggerService extends e {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
static logToStandardError() {
|
|
89
|
-
|
|
90
|
-
process.emitWarning("LoggerService.logToStandardError() was called after the first log line, so log lines still go to standard output and anything piping that stream will read them as data. Call it as the first statement of the application's bootstrap.");
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
M.writesToStandardError = !0;
|
|
89
|
+
N.rootLogger === void 0 ? N.writesToStandardError = !0 : process.emitWarning("LoggerService.logToStandardError() was called after the first log line, so log lines still go to standard output and anything piping that stream will read them as data. Call it as the first statement of the application's bootstrap.");
|
|
94
90
|
}
|
|
95
91
|
assertConventionalMessage(e) {
|
|
96
|
-
if (
|
|
92
|
+
if (N.isProduction || this.shouldSkipConventionalMessageValidation(e.context)) return;
|
|
97
93
|
let t = this.getConventionalMessageViolation(e.parsed);
|
|
98
94
|
if (t !== void 0) throw Error(t);
|
|
99
95
|
}
|
|
@@ -104,21 +100,21 @@ var M, N = class LoggerService extends e {
|
|
|
104
100
|
}), {
|
|
105
101
|
...e.data,
|
|
106
102
|
context: e.context,
|
|
107
|
-
...
|
|
103
|
+
...N.isProduction ? {} : { emoji: e.parsed.emoji }
|
|
108
104
|
};
|
|
109
105
|
}
|
|
110
106
|
getConventionalMessageViolation(e) {
|
|
111
107
|
let t = e.emoji, n = e.text;
|
|
112
108
|
if (t === void 0) return `Log message must start with an emoji naming its subject, then a verb: "${n}"`;
|
|
113
|
-
let r =
|
|
109
|
+
let r = A.exec(n)?.[1];
|
|
114
110
|
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}"`;
|
|
115
111
|
}
|
|
116
112
|
isConventionalVerb(e) {
|
|
117
113
|
let t = e.toLowerCase();
|
|
118
|
-
return t.endsWith("ing") || t.endsWith("ed") ||
|
|
114
|
+
return t.endsWith("ing") || t.endsWith("ed") || j.has(t);
|
|
119
115
|
}
|
|
120
116
|
parseMessage(e) {
|
|
121
|
-
let t = String(e), n =
|
|
117
|
+
let t = String(e), n = k.exec(t), r = n?.[1];
|
|
122
118
|
return r === void 0 ? {
|
|
123
119
|
emoji: void 0,
|
|
124
120
|
text: t
|
|
@@ -128,10 +124,10 @@ var M, N = class LoggerService extends e {
|
|
|
128
124
|
};
|
|
129
125
|
}
|
|
130
126
|
shouldSkipConventionalMessageValidation(e) {
|
|
131
|
-
return e !== void 0 &&
|
|
127
|
+
return e !== void 0 && M.has(e);
|
|
132
128
|
}
|
|
133
129
|
static get root() {
|
|
134
|
-
return
|
|
130
|
+
return N.rootLogger ??= N.createRootLogger(), N.rootLogger;
|
|
135
131
|
}
|
|
136
132
|
buildErrorLogEntry(e, t) {
|
|
137
133
|
let n = t instanceof Error ? t.stack || t.message : String(t);
|
|
@@ -175,7 +171,7 @@ var M, N = class LoggerService extends e {
|
|
|
175
171
|
this.info(e, t, n);
|
|
176
172
|
}
|
|
177
173
|
setContext(e) {
|
|
178
|
-
super.setContext(e), this.child =
|
|
174
|
+
super.setContext(e), this.child = N.root.child({ context: e });
|
|
179
175
|
}
|
|
180
176
|
verbose(e, t, n) {
|
|
181
177
|
let r = this.parseMessage(e);
|
|
@@ -194,22 +190,22 @@ var M, N = class LoggerService extends e {
|
|
|
194
190
|
}), r.text);
|
|
195
191
|
}
|
|
196
192
|
};
|
|
197
|
-
|
|
193
|
+
P = N = __decorate([n({ scope: i.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], P);
|
|
198
194
|
//#endregion
|
|
199
195
|
//#region packages/logging/src/modules/logger/logger.module.ts
|
|
200
|
-
var
|
|
201
|
-
|
|
196
|
+
var F = class LoggerModule {};
|
|
197
|
+
F = __decorate([t(), r({
|
|
202
198
|
controllers: [],
|
|
203
|
-
exports: [
|
|
199
|
+
exports: [P],
|
|
204
200
|
imports: [],
|
|
205
|
-
providers: [
|
|
206
|
-
})],
|
|
207
|
-
var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.templateName}". Available: ${e.availableTemplateNames.join(", ")}`), removedGeneratorOptionError = () => /* @__PURE__ */ Error("--generator was removed. Pass --template instead: it is the word the configuration, the templates command, and the conformance report already use."),
|
|
201
|
+
providers: [P]
|
|
202
|
+
})], F);
|
|
203
|
+
var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.templateName}". Available: ${e.availableTemplateNames.join(", ")}`), removedGeneratorOptionError = () => /* @__PURE__ */ Error("--generator was removed. Pass --template instead: it is the word the configuration, the templates command, and the conformance report already use."), I = d.object({}), missingTemplateError = (e) => new h(`No template was selected. Pass --template. Available: ${e.join(", ")}`), L, R = L = class GenerateCommand extends b {
|
|
208
204
|
configurationService;
|
|
209
205
|
generationService;
|
|
210
206
|
logger;
|
|
211
207
|
constructor(e, t, n) {
|
|
212
|
-
super(), this.configurationService = e, this.generationService = t, this.logger = n, this.logger.setContext(
|
|
208
|
+
super(), this.configurationService = e, this.generationService = t, this.logger = n, this.logger.setContext(L.name);
|
|
213
209
|
}
|
|
214
210
|
async generate(e, t) {
|
|
215
211
|
let n = [...e, ...process.argv.slice(2)];
|
|
@@ -219,28 +215,23 @@ var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.t
|
|
|
219
215
|
templateName: t.template
|
|
220
216
|
});
|
|
221
217
|
this.logger.debug("π Generating a conformetry instance", void 0, { template: i });
|
|
222
|
-
let a =
|
|
223
|
-
if (a === void 0) throw this.logger.error("π« Rejected an unknown template", void 0, { template: i }), unknownTemplateError({
|
|
224
|
-
availableTemplateNames: r.map((e) => e.name),
|
|
225
|
-
templateName: i
|
|
226
|
-
});
|
|
227
|
-
let o = {
|
|
218
|
+
let a = this.requireDefinition(r, i), o = this.requireDirectory(t, a.name), s = {
|
|
228
219
|
properties: a.inputs,
|
|
229
220
|
required: Object.keys(a.inputs)
|
|
230
|
-
},
|
|
221
|
+
}, c = await this.configurationService.resolveGeneratorInputs({
|
|
231
222
|
rawArguments: n,
|
|
232
|
-
schema:
|
|
233
|
-
}),
|
|
223
|
+
schema: s
|
|
224
|
+
}), l = await this.generationService.runGenerator({
|
|
234
225
|
definition: {
|
|
235
226
|
name: a.name,
|
|
236
227
|
templateDirectoryPath: a.templatePath
|
|
237
228
|
},
|
|
238
|
-
inputs:
|
|
239
|
-
instancePath:
|
|
229
|
+
inputs: c,
|
|
230
|
+
instancePath: o
|
|
240
231
|
});
|
|
241
|
-
process.stdout.write(`${
|
|
242
|
-
count:
|
|
243
|
-
outputDirectoryPath:
|
|
232
|
+
process.stdout.write(`${l.generatedFilePaths.map((e) => ` ${e}`).join("\n")}\n`), this.logger.info("β¨ Generated instance files", void 0, {
|
|
233
|
+
count: l.generatedFilePaths.length,
|
|
234
|
+
outputDirectoryPath: l.outputDirectoryPath
|
|
244
235
|
});
|
|
245
236
|
}
|
|
246
237
|
rejectCommandLine(e) {
|
|
@@ -249,6 +240,18 @@ var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.t
|
|
|
249
240
|
rejectRemovedGeneratorOption(e) {
|
|
250
241
|
if (e.some((e) => e === "--generator" || e.startsWith("--generator="))) throw this.logger.error("π« Rejected a removed option", void 0, { option: "--generator" }), removedGeneratorOptionError();
|
|
251
242
|
}
|
|
243
|
+
requireDefinition(e, t) {
|
|
244
|
+
let n = e.find((e) => e.name === t);
|
|
245
|
+
if (n === void 0) throw this.logger.error("π« Rejected an unknown template", void 0, { template: t }), unknownTemplateError({
|
|
246
|
+
availableTemplateNames: e.map((e) => e.name),
|
|
247
|
+
templateName: t
|
|
248
|
+
});
|
|
249
|
+
return n;
|
|
250
|
+
}
|
|
251
|
+
requireDirectory(e, t) {
|
|
252
|
+
if (e.directory === void 0) throw this.logger.error("π« Rejected a run with no directory", void 0, { template: t }), g({ generatorName: t });
|
|
253
|
+
return e.directory;
|
|
254
|
+
}
|
|
252
255
|
async resolveTemplateName(e) {
|
|
253
256
|
if (e.templateName !== void 0) return e.templateName;
|
|
254
257
|
let t = e.configuration.map((e) => e.name);
|
|
@@ -276,31 +279,31 @@ var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.t
|
|
|
276
279
|
}
|
|
277
280
|
};
|
|
278
281
|
__decorate([
|
|
279
|
-
|
|
282
|
+
x({
|
|
280
283
|
description: "Path to the conformetry configuration file",
|
|
281
284
|
flags: "--config [path]"
|
|
282
285
|
}),
|
|
283
286
|
__decorateMetadata("design:type", Function),
|
|
284
287
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
285
288
|
__decorateMetadata("design:returntype", Object)
|
|
286
|
-
],
|
|
287
|
-
|
|
289
|
+
], R.prototype, "parseConfig", null), __decorate([
|
|
290
|
+
x({
|
|
288
291
|
description: "Directory to write generated files into",
|
|
289
292
|
flags: "--directory [path]"
|
|
290
293
|
}),
|
|
291
294
|
__decorateMetadata("design:type", Function),
|
|
292
295
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
293
296
|
__decorateMetadata("design:returntype", Object)
|
|
294
|
-
],
|
|
295
|
-
|
|
297
|
+
], R.prototype, "parseDirectory", null), __decorate([
|
|
298
|
+
x({
|
|
296
299
|
description: "Name of the template to render",
|
|
297
300
|
flags: "--template [name]"
|
|
298
301
|
}),
|
|
299
302
|
__decorateMetadata("design:type", Function),
|
|
300
303
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
301
304
|
__decorateMetadata("design:returntype", Object)
|
|
302
|
-
],
|
|
303
|
-
|
|
305
|
+
], R.prototype, "parseTemplate", null), R = L = __decorate([
|
|
306
|
+
y({
|
|
304
307
|
allowUnknownOptions: !0,
|
|
305
308
|
description: "Render a template into a new instance",
|
|
306
309
|
name: "generate"
|
|
@@ -308,31 +311,31 @@ __decorate([
|
|
|
308
311
|
n(),
|
|
309
312
|
__decorateMetadata("design:paramtypes", [
|
|
310
313
|
m === void 0 ? Object : m,
|
|
311
|
-
|
|
312
|
-
|
|
314
|
+
v === void 0 ? Object : v,
|
|
315
|
+
P === void 0 ? Object : P
|
|
313
316
|
])
|
|
314
|
-
],
|
|
317
|
+
], R);
|
|
315
318
|
//#endregion
|
|
316
319
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.module.ts
|
|
317
|
-
var
|
|
318
|
-
|
|
320
|
+
var z = class GenerateModule {};
|
|
321
|
+
z = __decorate([r({
|
|
319
322
|
controllers: [],
|
|
320
|
-
exports: [
|
|
323
|
+
exports: [R],
|
|
321
324
|
imports: [
|
|
322
325
|
p,
|
|
323
|
-
|
|
324
|
-
|
|
326
|
+
_,
|
|
327
|
+
F
|
|
325
328
|
],
|
|
326
|
-
providers: [
|
|
327
|
-
})],
|
|
329
|
+
providers: [R]
|
|
330
|
+
})], z);
|
|
328
331
|
//#endregion
|
|
329
332
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.constants.ts
|
|
330
|
-
var
|
|
333
|
+
var B = "No instances were found. Check the instance globs in the configuration.", V = "No instance is explained by those templates.", H, U = H = class InstancesCommand extends b {
|
|
331
334
|
configurationService;
|
|
332
335
|
inventoryService;
|
|
333
336
|
logger;
|
|
334
337
|
constructor(e, t, n) {
|
|
335
|
-
super(), this.configurationService = e, this.inventoryService = t, this.logger = n, this.logger.setContext(
|
|
338
|
+
super(), this.configurationService = e, this.inventoryService = t, this.logger = n, this.logger.setContext(H.name);
|
|
336
339
|
}
|
|
337
340
|
parseConfig(e) {
|
|
338
341
|
return this.configurationService.parseOptionalOption(e);
|
|
@@ -353,74 +356,66 @@ var z = "No instances were found. Check the instance globs in the configuration.
|
|
|
353
356
|
}),
|
|
354
357
|
workingDirectory: n
|
|
355
358
|
});
|
|
356
|
-
|
|
357
|
-
console.info(JSON.stringify(i, void 0, 2));
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
if (i.length === 0) {
|
|
361
|
-
console.info(t.templates === void 0 ? z : B);
|
|
362
|
-
return;
|
|
363
|
-
}
|
|
364
|
-
console.info(this.inventoryService.describeInstances(i).join("\n"));
|
|
359
|
+
t.json === !0 ? console.info(JSON.stringify(i, void 0, 2)) : i.length === 0 ? console.info(t.templates === void 0 ? B : V) : console.info(this.inventoryService.describeInstances(i).join("\n"));
|
|
365
360
|
}
|
|
366
361
|
};
|
|
367
362
|
__decorate([
|
|
368
|
-
|
|
363
|
+
x({
|
|
369
364
|
description: "Path to the conformetry configuration file",
|
|
370
365
|
flags: "--config [path]"
|
|
371
366
|
}),
|
|
372
367
|
__decorateMetadata("design:type", Function),
|
|
373
368
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
374
369
|
__decorateMetadata("design:returntype", Object)
|
|
375
|
-
],
|
|
376
|
-
|
|
370
|
+
], U.prototype, "parseConfig", null), __decorate([
|
|
371
|
+
x({
|
|
377
372
|
description: "Write the listing as JSON",
|
|
378
373
|
flags: "--json"
|
|
379
374
|
}),
|
|
380
375
|
__decorateMetadata("design:type", Function),
|
|
381
376
|
__decorateMetadata("design:paramtypes", []),
|
|
382
377
|
__decorateMetadata("design:returntype", Boolean)
|
|
383
|
-
],
|
|
384
|
-
|
|
378
|
+
], U.prototype, "parseJson", null), __decorate([
|
|
379
|
+
x({
|
|
385
380
|
description: "Comma-separated template names; report only the instances they explain",
|
|
386
381
|
flags: "--templates [names]"
|
|
387
382
|
}),
|
|
388
383
|
__decorateMetadata("design:type", Function),
|
|
389
384
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
390
385
|
__decorateMetadata("design:returntype", Object)
|
|
391
|
-
],
|
|
392
|
-
|
|
386
|
+
], U.prototype, "parseTemplates", null), U = H = __decorate([
|
|
387
|
+
y({
|
|
393
388
|
description: "List the generated code the configuration finds, and what explains it",
|
|
394
389
|
name: "instances"
|
|
395
390
|
}),
|
|
396
391
|
n(),
|
|
397
392
|
__decorateMetadata("design:paramtypes", [
|
|
398
393
|
m === void 0 ? Object : m,
|
|
399
|
-
|
|
400
|
-
|
|
394
|
+
C === void 0 ? Object : C,
|
|
395
|
+
P === void 0 ? Object : P
|
|
401
396
|
])
|
|
402
|
-
],
|
|
397
|
+
], U);
|
|
403
398
|
//#endregion
|
|
404
399
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.module.ts
|
|
405
|
-
var
|
|
406
|
-
|
|
400
|
+
var W = class InstancesModule {};
|
|
401
|
+
W = __decorate([r({
|
|
407
402
|
controllers: [],
|
|
408
|
-
exports: [
|
|
403
|
+
exports: [U],
|
|
409
404
|
imports: [
|
|
410
405
|
p,
|
|
411
|
-
|
|
412
|
-
|
|
406
|
+
S,
|
|
407
|
+
F
|
|
413
408
|
],
|
|
414
|
-
providers: [
|
|
415
|
-
})],
|
|
409
|
+
providers: [U]
|
|
410
|
+
})], W);
|
|
416
411
|
//#endregion
|
|
417
412
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.constants.ts
|
|
418
|
-
var
|
|
413
|
+
var G = "No templates are declared in the configuration.", K = "No template explains those paths. Either they are not generated code, or they have drifted past recognition.", q, J = q = class TemplatesCommand extends b {
|
|
419
414
|
configurationService;
|
|
420
415
|
inventoryService;
|
|
421
416
|
logger;
|
|
422
417
|
constructor(e, t, n) {
|
|
423
|
-
super(), this.configurationService = e, this.inventoryService = t, this.logger = n, this.logger.setContext(
|
|
418
|
+
super(), this.configurationService = e, this.inventoryService = t, this.logger = n, this.logger.setContext(q.name);
|
|
424
419
|
}
|
|
425
420
|
parseConfig(e) {
|
|
426
421
|
return this.configurationService.parseOptionalOption(e);
|
|
@@ -441,78 +436,70 @@ var W = "No templates are declared in the configuration.", G = "No template expl
|
|
|
441
436
|
}),
|
|
442
437
|
workingDirectory: n
|
|
443
438
|
});
|
|
444
|
-
|
|
445
|
-
console.info(JSON.stringify(i, void 0, 2));
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
if (i.length === 0) {
|
|
449
|
-
console.info(t.instances === void 0 ? W : G);
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
console.info(this.inventoryService.describeTemplates({
|
|
439
|
+
t.json === !0 ? console.info(JSON.stringify(i, void 0, 2)) : i.length === 0 ? console.info(t.instances === void 0 ? G : K) : console.info(this.inventoryService.describeTemplates({
|
|
453
440
|
showInstances: t.instances !== void 0,
|
|
454
441
|
templates: i
|
|
455
442
|
}).join("\n"));
|
|
456
443
|
}
|
|
457
444
|
};
|
|
458
445
|
__decorate([
|
|
459
|
-
|
|
446
|
+
x({
|
|
460
447
|
description: "Path to the conformetry configuration file",
|
|
461
448
|
flags: "--config [path]"
|
|
462
449
|
}),
|
|
463
450
|
__decorateMetadata("design:type", Function),
|
|
464
451
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
465
452
|
__decorateMetadata("design:returntype", Object)
|
|
466
|
-
],
|
|
467
|
-
|
|
453
|
+
], J.prototype, "parseConfig", null), __decorate([
|
|
454
|
+
x({
|
|
468
455
|
description: "Comma-separated paths or globs; report only the templates that explain them",
|
|
469
456
|
flags: "--instances [globs]"
|
|
470
457
|
}),
|
|
471
458
|
__decorateMetadata("design:type", Function),
|
|
472
459
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
473
460
|
__decorateMetadata("design:returntype", Object)
|
|
474
|
-
],
|
|
475
|
-
|
|
461
|
+
], J.prototype, "parseInstances", null), __decorate([
|
|
462
|
+
x({
|
|
476
463
|
description: "Write the listing as JSON",
|
|
477
464
|
flags: "--json"
|
|
478
465
|
}),
|
|
479
466
|
__decorateMetadata("design:type", Function),
|
|
480
467
|
__decorateMetadata("design:paramtypes", []),
|
|
481
468
|
__decorateMetadata("design:returntype", Boolean)
|
|
482
|
-
],
|
|
483
|
-
|
|
469
|
+
], J.prototype, "parseJson", null), J = q = __decorate([
|
|
470
|
+
y({
|
|
484
471
|
description: "Name the templates the configuration declares, or which ones explain a path",
|
|
485
472
|
name: "templates"
|
|
486
473
|
}),
|
|
487
474
|
n(),
|
|
488
475
|
__decorateMetadata("design:paramtypes", [
|
|
489
476
|
m === void 0 ? Object : m,
|
|
490
|
-
|
|
491
|
-
|
|
477
|
+
C === void 0 ? Object : C,
|
|
478
|
+
P === void 0 ? Object : P
|
|
492
479
|
])
|
|
493
|
-
],
|
|
480
|
+
], J);
|
|
494
481
|
//#endregion
|
|
495
482
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.module.ts
|
|
496
|
-
var
|
|
497
|
-
|
|
483
|
+
var Y = class TemplatesModule {};
|
|
484
|
+
Y = __decorate([r({
|
|
498
485
|
controllers: [],
|
|
499
|
-
exports: [
|
|
486
|
+
exports: [J],
|
|
500
487
|
imports: [
|
|
501
488
|
p,
|
|
502
|
-
|
|
503
|
-
|
|
489
|
+
S,
|
|
490
|
+
F
|
|
504
491
|
],
|
|
505
|
-
providers: [
|
|
506
|
-
})],
|
|
492
|
+
providers: [J]
|
|
493
|
+
})], Y);
|
|
507
494
|
//#endregion
|
|
508
495
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts
|
|
509
|
-
var
|
|
496
|
+
var X, Z = X = class ValidateCommand extends b {
|
|
510
497
|
configurationService;
|
|
511
498
|
reportingService;
|
|
512
499
|
validationService;
|
|
513
500
|
logger;
|
|
514
501
|
constructor(e, t, n, r) {
|
|
515
|
-
super(), this.configurationService = e, this.reportingService = t, this.validationService = n, this.logger = r, this.logger.setContext(
|
|
502
|
+
super(), this.configurationService = e, this.reportingService = t, this.validationService = n, this.logger = r, this.logger.setContext(X.name);
|
|
516
503
|
}
|
|
517
504
|
describeFailure(e) {
|
|
518
505
|
return `Validation failed: ${[...e.scores.filter((e) => !e.ok).map((e) => `${e.instancePath} scored ${this.reportingService.formatPercentage(e.score)} against ${e.templateName} (threshold ${this.reportingService.formatPercentage(e.threshold)})`), ...e.unmatched.length === 0 ? [] : [`${String(e.unmatched.length)} instance(s) matched no template`]].join("; ")}.`;
|
|
@@ -627,87 +614,87 @@ var Y, X = Y = class ValidateCommand extends y {
|
|
|
627
614
|
}
|
|
628
615
|
};
|
|
629
616
|
__decorate([
|
|
630
|
-
|
|
617
|
+
x({
|
|
631
618
|
description: "Path to the conformetry configuration file",
|
|
632
619
|
flags: "--config [path]"
|
|
633
620
|
}),
|
|
634
621
|
__decorateMetadata("design:type", Function),
|
|
635
622
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
636
623
|
__decorateMetadata("design:returntype", Object)
|
|
637
|
-
],
|
|
638
|
-
|
|
624
|
+
], Z.prototype, "parseConfig", null), __decorate([
|
|
625
|
+
x({
|
|
639
626
|
description: "Comma-separated glob patterns to validate, overriding the configuration",
|
|
640
627
|
flags: "--instances [globs]"
|
|
641
628
|
}),
|
|
642
629
|
__decorateMetadata("design:type", Function),
|
|
643
630
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
644
631
|
__decorateMetadata("design:returntype", Object)
|
|
645
|
-
],
|
|
646
|
-
|
|
632
|
+
], Z.prototype, "parseInstances", null), __decorate([
|
|
633
|
+
x({
|
|
647
634
|
description: "Comma-separated language names to run",
|
|
648
635
|
flags: "--languages [languages]"
|
|
649
636
|
}),
|
|
650
637
|
__decorateMetadata("design:type", Function),
|
|
651
638
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
652
639
|
__decorateMetadata("design:returntype", Object)
|
|
653
|
-
],
|
|
654
|
-
|
|
640
|
+
], Z.prototype, "parseLanguages", null), __decorate([
|
|
641
|
+
x({
|
|
655
642
|
description: `Comma-separated template names to validate, or "${f}" for every one`,
|
|
656
643
|
flags: "--templates [names]"
|
|
657
644
|
}),
|
|
658
645
|
__decorateMetadata("design:type", Function),
|
|
659
646
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
660
647
|
__decorateMetadata("design:returntype", Object)
|
|
661
|
-
],
|
|
662
|
-
|
|
648
|
+
], Z.prototype, "parseTemplates", null), __decorate([
|
|
649
|
+
x({
|
|
663
650
|
description: "Lowest conformance score an instance may have, from 0 to 1. Overridden by a generator's own threshold and by an instance group's",
|
|
664
651
|
flags: "--threshold [ratio]"
|
|
665
652
|
}),
|
|
666
653
|
__decorateMetadata("design:type", Function),
|
|
667
654
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
668
655
|
__decorateMetadata("design:returntype", Object)
|
|
669
|
-
],
|
|
670
|
-
|
|
656
|
+
], Z.prototype, "parseThreshold", null), Z = X = __decorate([
|
|
657
|
+
y({
|
|
671
658
|
description: "Measure instances against their templates and report every difference",
|
|
672
659
|
name: "validate"
|
|
673
660
|
}),
|
|
674
661
|
n(),
|
|
675
662
|
__decorateMetadata("design:paramtypes", [
|
|
676
663
|
m === void 0 ? Object : m,
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
664
|
+
T === void 0 ? Object : T,
|
|
665
|
+
D === void 0 ? Object : D,
|
|
666
|
+
P === void 0 ? Object : P
|
|
680
667
|
])
|
|
681
|
-
],
|
|
668
|
+
], Z);
|
|
682
669
|
//#endregion
|
|
683
670
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.module.ts
|
|
684
|
-
var
|
|
685
|
-
|
|
671
|
+
var Q = class ValidateModule {};
|
|
672
|
+
Q = __decorate([r({
|
|
686
673
|
controllers: [],
|
|
687
|
-
exports: [
|
|
674
|
+
exports: [Z],
|
|
688
675
|
imports: [
|
|
689
676
|
p,
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
677
|
+
F,
|
|
678
|
+
w,
|
|
679
|
+
E
|
|
693
680
|
],
|
|
694
|
-
providers: [
|
|
695
|
-
})],
|
|
681
|
+
providers: [Z]
|
|
682
|
+
})], Q);
|
|
696
683
|
//#endregion
|
|
697
684
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/main.module.ts
|
|
698
|
-
var
|
|
699
|
-
|
|
685
|
+
var $ = class MainModule {};
|
|
686
|
+
$ = __decorate([r({ imports: [
|
|
700
687
|
a.forRoot({
|
|
701
688
|
envFilePath: ".env",
|
|
702
689
|
isGlobal: !0,
|
|
703
|
-
validate: (e) =>
|
|
690
|
+
validate: (e) => I.parse(e)
|
|
704
691
|
}),
|
|
705
692
|
o,
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
] })],
|
|
693
|
+
F,
|
|
694
|
+
z,
|
|
695
|
+
W,
|
|
696
|
+
Y,
|
|
697
|
+
Q
|
|
698
|
+
] })], $);
|
|
712
699
|
//#endregion
|
|
713
|
-
export {
|
|
700
|
+
export { J as a, z as c, __name as d, Y as i, R as l, Q as n, W as o, Z as r, U as s, $ as t, P as u };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -47,6 +47,17 @@ export declare class GenerateCommand extends CommandRunner {
|
|
|
47
47
|
* script to prompt or to fail for the wrong reason.
|
|
48
48
|
*/
|
|
49
49
|
private rejectRemovedGeneratorOption;
|
|
50
|
+
/** The configured template of that name, or a refusal listing the real ones. */
|
|
51
|
+
private requireDefinition;
|
|
52
|
+
/**
|
|
53
|
+
* The directory to write into, or a refusal when the caller named none.
|
|
54
|
+
*
|
|
55
|
+
* Required, unlike on the Nx host: nothing here can locate a project, so a
|
|
56
|
+
* missing flag would otherwise write somewhere the caller never chose. It is
|
|
57
|
+
* checked before any input is asked for, so nobody answers prompts for a
|
|
58
|
+
* run that was never going to happen.
|
|
59
|
+
*/
|
|
60
|
+
private requireDirectory;
|
|
50
61
|
/**
|
|
51
62
|
* Settles which template to render: the one named, the one picked, or none.
|
|
52
63
|
*
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { r as GenerateCommand, t as GenerateModule, s as InstancesCommand, a as InstancesModule, c as MainModule, e as TemplatesCommand, n as TemplatesModule, o as ValidateCommand, i as ValidateModule };
|
|
1
|
+
export { l as GenerateCommand, c as GenerateModule, s as InstancesCommand, o as InstancesModule, t as MainModule, a as TemplatesCommand, i as TemplatesModule, r as ValidateCommand, n as ValidateModule } from "../main.module-Dk88Dy1P.js";
|
package/dist/src/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as e, u as t } from "../main.module-
|
|
2
|
+
import { t as e, u as t } from "../main.module-Dk88Dy1P.js";
|
|
3
3
|
import { CommandFactory as n } from "nest-commander";
|
|
4
4
|
import "reflect-metadata";
|
|
5
5
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/main.ts
|
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.16",
|
|
11
|
+
"@conformetry/generation": "0.0.16",
|
|
12
|
+
"@conformetry/output": "0.0.15",
|
|
13
|
+
"@conformetry/validation": "0.0.15",
|
|
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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"description": "Command-line toolchain for scaffolding code from templates and holding implementations to them",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@codebase/logging": "0.0.1",
|
|
26
|
-
"@conformetry/core": "0.0.
|
|
26
|
+
"@conformetry/core": "0.0.15",
|
|
27
27
|
"@golevelup/ts-vitest": "^4.0.0",
|
|
28
28
|
"@nestjs/testing": "^12.0.1",
|
|
29
29
|
"@nx/eslint-plugin": "^23.0.0",
|
|
@@ -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.16"
|
|
79
79
|
}
|