@conformetry/generation 0.0.38 โ 0.0.39
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 +11 -0
- package/README.md +29 -27
- package/dist/src/index.d.ts +6 -53
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.0.39 (2026-10-18)
|
|
2
|
+
|
|
3
|
+
### ๐
Refactors
|
|
4
|
+
|
|
5
|
+
- **conformetry:** โป๏ธ move the hook and filesystem types to the core package ([#1692](https://github.com/organizzolini/codebase/pull/1692), [#1673](https://github.com/organizzolini/codebase/issues/1673))
|
|
6
|
+
|
|
7
|
+
### ๐งฑ Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated conformetry-configuration to 0.0.39
|
|
10
|
+
- Updated conformetry-core to 0.0.38
|
|
11
|
+
|
|
1
12
|
## 0.0.38 (2026-10-18)
|
|
2
13
|
|
|
3
14
|
### ๐งฑ Updated Dependencies
|
package/README.md
CHANGED
|
@@ -122,25 +122,25 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
122
122
|
**1. `GenerationService.listDirectory`** โ depth 2 ยท orphan-root
|
|
123
123
|
|
|
124
124
|
```text
|
|
125
|
-
๐ GenerationService.listDirectory(directoryPath: string): Promise<DirectoryEntry[]> [projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:
|
|
126
|
-
โโ> GenerationService.map(โฆ)(entry: Dirent<string>): { isDirectory: boolean; name: string; } [projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:
|
|
125
|
+
๐ GenerationService.listDirectory(directoryPath: string): Promise<DirectoryEntry[]> [projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:40]
|
|
126
|
+
โโ> GenerationService.map(โฆ)(entry: Dirent<string>): { isDirectory: boolean; name: string; } [projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:43]
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
### Breadth
|
|
130
130
|
|
|
131
131
|
| Callable | Breadth | Calls directly | Location |
|
|
132
132
|
| --- | --- | --- | --- |
|
|
133
|
-
| `GenerationService.runGenerator` | 4 | `GenerationService.resolveAdapters`, `GenerationService.normalizeInputs`, `GenerationService.buildSubstitutions`, `GenerationService.renderDirectory` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:
|
|
134
|
-
| `GenerationService.renderDirectory` | 2 | `ConfigurationService.renderPath`, `GenerationService.renderFile` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:
|
|
135
|
-
| `GenerationService.listDirectory` | 1 | `GenerationService.map(โฆ)` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:
|
|
133
|
+
| `GenerationService.runGenerator` | 4 | `GenerationService.resolveAdapters`, `GenerationService.normalizeInputs`, `GenerationService.buildSubstitutions`, `GenerationService.renderDirectory` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:192` |
|
|
134
|
+
| `GenerationService.renderDirectory` | 2 | `ConfigurationService.renderPath`, `GenerationService.renderFile` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:106` |
|
|
135
|
+
| `GenerationService.listDirectory` | 1 | `GenerationService.map(โฆ)` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:40` |
|
|
136
136
|
|
|
137
137
|
<details>
|
|
138
138
|
<summary>2 more callables</summary>
|
|
139
139
|
|
|
140
140
|
| Callable | Breadth | Calls directly | Location |
|
|
141
141
|
| --- | --- | --- | --- |
|
|
142
|
-
| `GenerationService.buildSubstitutions` | 1 | `ConfigurationService.buildNameSubstitutions` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:
|
|
143
|
-
| `GenerationService.renderFile` | 1 | `ConfigurationService.renderContent` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:
|
|
142
|
+
| `GenerationService.buildSubstitutions` | 1 | `ConfigurationService.buildNameSubstitutions` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:76` |
|
|
143
|
+
| `GenerationService.renderFile` | 1 | `ConfigurationService.renderContent` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:155` |
|
|
144
144
|
|
|
145
145
|
</details>
|
|
146
146
|
<!-- callidescope:end -->
|
|
@@ -156,12 +156,14 @@ Dependency graphs exported by [codependix](https://github.com/Organizzolini/code
|
|
|
156
156
|
graph LR
|
|
157
157
|
conformetry_cli["conformetry-cli"]
|
|
158
158
|
conformetry_configuration["conformetry-configuration"]
|
|
159
|
+
conformetry_core["conformetry-core"]
|
|
159
160
|
conformetry_examples["conformetry-examples"]
|
|
160
161
|
conformetry_generation["conformetry-generation"]
|
|
161
162
|
conformetry_nx["conformetry-nx"]
|
|
162
163
|
conformetry_cli --> conformetry_generation
|
|
163
164
|
conformetry_examples --> conformetry_generation
|
|
164
165
|
conformetry_generation --> conformetry_configuration
|
|
166
|
+
conformetry_generation --> conformetry_core
|
|
165
167
|
conformetry_nx --> conformetry_generation
|
|
166
168
|
classDef subject fill:#7c3aed,color:#fff,stroke:#4c1d95,stroke-width:2px
|
|
167
169
|
class conformetry_generation subject
|
|
@@ -227,8 +229,8 @@ graph LR
|
|
|
227
229
|
|
|
228
230
|
### Project
|
|
229
231
|
|
|
230
|
-

|
|
233
|
+

|
|
232
234
|

|
|
233
235
|

|
|
234
236
|
|
|
@@ -239,28 +241,28 @@ graph LR
|
|
|
239
241
|
### TypeScript
|
|
240
242
|
|
|
241
243
|

|
|
242
|
-

|
|
243
245
|

|
|
244
246
|

|
|
245
247
|

|
|
246
|
-

|
|
247
249
|

|
|
248
250
|
|
|
249
251
|
### JavaScript
|
|
250
252
|
|
|
251
253
|

|
|
252
254
|

|
|
253
|
-

|
|
254
256
|

|
|
255
257
|

|
|
256
258
|

|
|
257
259
|

|
|
258
260
|

|
|
259
261
|

|
|
260
|
-

|
|
263
|
+

|
|
264
|
+

|
|
265
|
+

|
|
264
266
|

|
|
265
267
|
|
|
266
268
|
### Python
|
|
@@ -281,16 +283,16 @@ graph LR
|
|
|
281
283
|
### JSON
|
|
282
284
|
|
|
283
285
|

|
|
284
|
-

|
|
285
287
|

|
|
286
288
|

|
|
287
|
-

|
|
290
|
+

|
|
289
291
|

|
|
290
292
|

|
|
291
293
|

|
|
292
294
|

|
|
293
|
-

|
|
294
296
|

|
|
295
297
|
|
|
296
298
|
### YAML
|
|
@@ -416,20 +418,20 @@ graph LR
|
|
|
416
418
|
### Markdown
|
|
417
419
|
|
|
418
420
|

|
|
419
|
-

|
|
420
422
|

|
|
421
|
-

|
|
424
|
+

|
|
423
425
|

|
|
424
426
|

|
|
425
427
|

|
|
426
|
-

|
|
429
|
+

|
|
430
|
+

|
|
429
431
|

|
|
430
432
|

|
|
431
433
|

|
|
432
|
-

|
|
433
435
|

|
|
434
436
|

|
|
435
437
|

|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import { ConfigurationService } from '@conformetry/configuration';
|
|
2
|
+
import { DirectoryEntry } from '@conformetry/core';
|
|
3
|
+
import { FileSystemAdapter } from '@conformetry/core';
|
|
4
|
+
import { GeneratorDefinition } from '@conformetry/core';
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
* A directory entry read from the source template tree.
|
|
5
|
-
*/
|
|
6
|
-
export declare interface DirectoryEntry {
|
|
7
|
-
isDirectory: boolean;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
6
|
+
export { DirectoryEntry }
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
* Filesystem operations used by the runtime.
|
|
13
|
-
*
|
|
14
|
-
* Exists so a host with a virtual filesystem โ an Nx generator `Tree`, for
|
|
15
|
-
* instance โ can run generation without touching disk. The default
|
|
16
|
-
* implementation reads and writes directly.
|
|
17
|
-
*/
|
|
18
|
-
export declare interface FileSystemAdapter {
|
|
19
|
-
listDirectory(directoryPath: string): Promise<DirectoryEntry[]>;
|
|
20
|
-
makeDirectory(directoryPath: string): Promise<void>;
|
|
21
|
-
readFile(filePath: string): Promise<string>;
|
|
22
|
-
writeFile(filePath: string, content: string): Promise<void>;
|
|
23
|
-
}
|
|
8
|
+
export { FileSystemAdapter }
|
|
24
9
|
|
|
25
10
|
/**
|
|
26
11
|
* Formatting applied once generation completes.
|
|
@@ -78,39 +63,7 @@ export declare class GenerationService {
|
|
|
78
63
|
runGenerator(args: RunGeneratorArguments): Promise<RunGeneratorResult>;
|
|
79
64
|
}
|
|
80
65
|
|
|
81
|
-
|
|
82
|
-
* Generator metadata and runtime configuration.
|
|
83
|
-
*/
|
|
84
|
-
export declare interface GeneratorDefinition {
|
|
85
|
-
description?: string;
|
|
86
|
-
hooks?: GeneratorHooks;
|
|
87
|
-
name: string;
|
|
88
|
-
templateDirectoryPath: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* A generator hook function.
|
|
93
|
-
*/
|
|
94
|
-
declare type GeneratorHook = (context: GeneratorHookContext) => Promise<void> | void;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Data exposed to generator hooks.
|
|
98
|
-
*/
|
|
99
|
-
declare interface GeneratorHookContext {
|
|
100
|
-
definition: GeneratorDefinition;
|
|
101
|
-
generatedFilePaths: string[];
|
|
102
|
-
input: Record<string, string>;
|
|
103
|
-
outputDirectoryPath: string;
|
|
104
|
-
substitutions: Record<string, string>;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Generator lifecycle hooks.
|
|
109
|
-
*/
|
|
110
|
-
declare interface GeneratorHooks {
|
|
111
|
-
postGenerate?: GeneratorHook;
|
|
112
|
-
preGenerate?: GeneratorHook;
|
|
113
|
-
}
|
|
66
|
+
export { GeneratorDefinition }
|
|
114
67
|
|
|
115
68
|
/**
|
|
116
69
|
* Arguments accepted by the runtime runner.
|
package/package.json
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@conformetry/configuration": "0.0.
|
|
7
|
+
"@conformetry/configuration": "0.0.39",
|
|
8
|
+
"@conformetry/core": "0.0.38",
|
|
8
9
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
9
10
|
"reflect-metadata": "^0.2.2"
|
|
10
11
|
},
|
|
@@ -58,5 +59,5 @@
|
|
|
58
59
|
"strict": true
|
|
59
60
|
},
|
|
60
61
|
"types": "./dist/src/index.d.ts",
|
|
61
|
-
"version": "0.0.
|
|
62
|
+
"version": "0.0.39"
|
|
62
63
|
}
|