@codependix/nx 0.0.1 β 0.0.2
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 +6 -0
- package/README.md +101 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -258,6 +258,100 @@ graph LR
|
|
|
258
258
|
```
|
|
259
259
|
<!-- codependix:end name="codependix-file-imports" -->
|
|
260
260
|
|
|
261
|
+
<!-- callidescope:start -->
|
|
262
|
+
|
|
263
|
+
## π Callidescope
|
|
264
|
+
|
|
265
|
+
Call stacks traced through `packages/ic-suite/codependix/codependix-nx`, deepest first. Each frame shows what it takes, what it returns, and what its documentation says.
|
|
266
|
+
|
|
267
|
+
| Measure | Value |
|
|
268
|
+
| --- | --- |
|
|
269
|
+
| Callables | 55 |
|
|
270
|
+
| Files | 20 |
|
|
271
|
+
| Calls traced | 59 |
|
|
272
|
+
| Call stacks | 2 |
|
|
273
|
+
| Deepest stack | 6 |
|
|
274
|
+
| Stacks through recursion | 0 |
|
|
275
|
+
| Unfollowable calls | 2 |
|
|
276
|
+
|
|
277
|
+
### Limits
|
|
278
|
+
|
|
279
|
+
What this project is judged against, as declared in its own `callidescope.config.ts`.
|
|
280
|
+
|
|
281
|
+
| Limit | Value |
|
|
282
|
+
| --- | --- |
|
|
283
|
+
| `maximumDepth` | 6 |
|
|
284
|
+
| `maximumBreadth` | 5 |
|
|
285
|
+
|
|
286
|
+
### Call stacks (depth)
|
|
287
|
+
|
|
288
|
+
**1. `anonymous`** β depth β₯ 6 Β· orphan-root
|
|
289
|
+
|
|
290
|
+
```text
|
|
291
|
+
π anonymous(β¦): Promise<CreateNodesResultArray> [packages/ic-suite/codependix/codependix-nx/src/index.ts:38]
|
|
292
|
+
ββ> resolveToolInputs(workspaceRoot: string): InferredInput[] [packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:30]
|
|
293
|
+
β³ The cache inputs that tie a gate to the codependix command line it runs.
|
|
294
|
+
ββ> resolveWorkspaceInputs(args: { cliDirectory: string; workspaceRoot: string; }): InferredInput[] [packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:130]
|
|
295
|
+
β³ Globs over the sources and manifest of the command line and of every workspace package it reaches, sorted so the cacheβ¦
|
|
296
|
+
ββ> collectWorkspacePackages(args: { packageDirectory: string; visited: Set<string>; }): Set<string> [packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:48]
|
|
297
|
+
β³ Collects a workspace package and every workspace package it depends on, development dependencies included: a packageβ¦
|
|
298
|
+
ββ> map(β¦)([name]: [string, unknown]): string [packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:56]
|
|
299
|
+
ββ> locateDependency(args: { fromDirectory: string; name: string; }): string [packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:87]
|
|
300
|
+
β³ Finds the real directory a package directory's dependency is linked from, through Node's own resolver β which is whyβ¦
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
**2. `gateExecutor`** β depth β₯ 6 Β· orphan-root
|
|
304
|
+
|
|
305
|
+
```text
|
|
306
|
+
π gateExecutor(β¦): Promise<{ success: boolean; }> [packages/ic-suite/codependix/codependix-nx/src/executors/gate/executor.ts:21]
|
|
307
|
+
β³ Fails one project's task when a codependix boundary finding is charged to it.
|
|
308
|
+
ββ> GateService.run(args: RunGateArguments): Promise<boolean> [packages/ic-suite/codependix/codependix-nx/src/modules/gate/gate.service.ts:189]
|
|
309
|
+
β³ Runs one gate, and settles on whether it passed.
|
|
310
|
+
ββ> GateService.resolveConfigurationPath(β¦): string [packages/ic-suite/codependix/codependix-nx/src/modules/gate/gate.service.ts:143]
|
|
311
|
+
β³ Resolves the configuration path one gate runs with.
|
|
312
|
+
ββ> PluginService.readRegisteredOptions(nxConfiguration: unknown): unknown [packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin.service.ts:135]
|
|
313
|
+
β³ Finds this plugin's own entry in an `nx.json` and returns its options.
|
|
314
|
+
ββ> PluginService.map(β¦)(entry: unknown): Record<string, unknown> [packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin.service.ts:143]
|
|
315
|
+
ββ> PluginService.toRecord(value: unknown): Record<string, unknown> [packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin.service.ts:79]
|
|
316
|
+
β³ Copies an untrusted value into a record, or an empty one.
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Breadth
|
|
320
|
+
|
|
321
|
+
| Callable | Breadth | Calls directly | Location |
|
|
322
|
+
| --- | --- | --- | --- |
|
|
323
|
+
| `anonymous` | 5 | `resolvePluginService`, `PluginService.inferTargets`, `resolveToolInputs`, `filter(β¦)`, `map(β¦)` | `packages/ic-suite/codependix/codependix-nx/src/index.ts:38` |
|
|
324
|
+
| `PluginService.readRegisteredOptions` | 4 | `PluginService.toRecord`, `PluginService.isUnknownArray`, `PluginService.find(β¦)`, `PluginService.map(β¦)` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin.service.ts:135` |
|
|
325
|
+
| `GateService.run` | 4 | `GateService.buildCommandArguments`, `GateService.resolveSelection`, `GateService.resolveConfigurationPath`, `GateService.spawnCommandLine` | `packages/ic-suite/codependix/codependix-nx/src/modules/gate/gate.service.ts:189` |
|
|
326
|
+
|
|
327
|
+
<details>
|
|
328
|
+
<summary>19 more callables</summary>
|
|
329
|
+
|
|
330
|
+
| Callable | Breadth | Calls directly | Location |
|
|
331
|
+
| --- | --- | --- | --- |
|
|
332
|
+
| `resolveToolInputs` | 4 | `locateCommandLine`, `toWorkspacePath`, `resolveExternalInputs`, `resolveWorkspaceInputs` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:30` |
|
|
333
|
+
| `collectWorkspacePackages` | 4 | `filter(β¦)`, `map(β¦)`, `filter(β¦)`, `readDependencies` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:48` |
|
|
334
|
+
| `PluginService.selectProjectRoots` | 3 | `PluginService.filter(β¦)`, `PluginService.map(β¦)`, `PluginService.filter(β¦)` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin.service.ts:65` |
|
|
335
|
+
| `PluginService.inferTargets` | 3 | `PluginService.resolvePluginOptions`, `PluginService.map(β¦)`, `PluginService.selectProjectRoots` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin.service.ts:98` |
|
|
336
|
+
| `PluginService.resolvePluginOptions` | 3 | `PluginService.toRecord`, `PluginService.readString`, `PluginService.find(β¦)` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin.service.ts:157` |
|
|
337
|
+
| `GateService.readNameList` | 3 | `GateService.filter(β¦)`, `GateService.map(β¦)`, `GateService.flatMap(β¦)` | `packages/ic-suite/codependix/codependix-nx/src/modules/gate/gate.service.ts:52` |
|
|
338
|
+
| `GateService.anonymous` | 3 | `GateService.on(β¦)`, `GateService.on(β¦)`, `GateService.on(β¦)` | `packages/ic-suite/codependix/codependix-nx/src/modules/gate/gate.service.ts:90` |
|
|
339
|
+
| `GateService.resolveConfigurationPath` | 3 | `PluginService.resolvePluginOptions`, `PluginService.readRegisteredOptions`, `GateService.readNxConfiguration` | `packages/ic-suite/codependix/codependix-nx/src/modules/gate/gate.service.ts:143` |
|
|
340
|
+
| `resolveExternalInputs` | 3 | `filter(β¦)`, `map(β¦)`, `readDependencies` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:118` |
|
|
341
|
+
| `resolveWorkspaceInputs` | 2 | `collectWorkspacePackages`, `flatMap(β¦)` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:130` |
|
|
342
|
+
| `gateExecutor` | 2 | `resolveGateService`, `GateService.run` | `packages/ic-suite/codependix/codependix-nx/src/executors/gate/executor.ts:21` |
|
|
343
|
+
| `PluginService.map(β¦)` | 1 | `PluginService.toRecord` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin.service.ts:143` |
|
|
344
|
+
| `GateService.spawnCommandLine` | 1 | `GateService.anonymous` | `packages/ic-suite/codependix/codependix-nx/src/modules/gate/gate.service.ts:86` |
|
|
345
|
+
| `GateService.resolveSelection` | 1 | `GateService.readNameList` | `packages/ic-suite/codependix/codependix-nx/src/modules/gate/gate.service.ts:168` |
|
|
346
|
+
| `resolveGateService` | 1 | `resolvePluginContext` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-context.utilities.ts:16` |
|
|
347
|
+
| `resolvePluginService` | 1 | `resolvePluginContext` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-context.utilities.ts:23` |
|
|
348
|
+
| `map(β¦)` | 1 | `locateDependency` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:56` |
|
|
349
|
+
| `readDependencies` | 1 | `toRecord` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:101` |
|
|
350
|
+
| `flatMap(β¦)` | 1 | `map(β¦)` | `packages/ic-suite/codependix/codependix-nx/src/modules/plugin/plugin-inputs.utilities.ts:141` |
|
|
351
|
+
|
|
352
|
+
</details>
|
|
353
|
+
<!-- callidescope:end -->
|
|
354
|
+
|
|
261
355
|
<!-- codometer:start -->
|
|
262
356
|
|
|
263
357
|
## β²οΈ Codometer
|
|
@@ -265,7 +359,7 @@ graph LR
|
|
|
265
359
|
### Project
|
|
266
360
|
|
|
267
361
|

|
|
268
|
-

|
|
269
363
|

|
|
270
364
|

|
|
271
365
|
|
|
@@ -449,16 +543,16 @@ graph LR
|
|
|
449
543
|
### Markdown
|
|
450
544
|
|
|
451
545
|

|
|
452
|
-

|
|
453
547
|

|
|
454
|
-

|
|
549
|
+

|
|
456
550
|

|
|
457
551
|

|
|
458
552
|

|
|
459
|
-

|
|
554
|
+

|
|
555
|
+

|
|
462
556
|

|
|
463
557
|

|
|
464
558
|

|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codependix/cli": "0.0.
|
|
7
|
+
"@codependix/cli": "0.0.17",
|
|
8
8
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
9
9
|
"@nestjs/core": "^11.1.21 || ^12.0.1",
|
|
10
10
|
"@nx/devkit": "^23.0.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"strict": true
|
|
71
71
|
},
|
|
72
72
|
"types": "./dist/src/index.d.ts",
|
|
73
|
-
"version": "0.0.
|
|
73
|
+
"version": "0.0.2"
|
|
74
74
|
}
|