@callidescope/nx 0.0.1
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/LICENSE +21 -0
- package/README.md +1041 -0
- package/dist/address.utilities-DJG3-xMW.js +20 -0
- package/dist/plugin-context.utilities-bBTXF3Wk.js +815 -0
- package/dist/plugin.utilities-CX_Q5t8_.js +18 -0
- package/dist/src/executors/breadth/executor.d.ts +34 -0
- package/dist/src/executors/breadth/executor.js +11 -0
- package/dist/src/executors/depth/executor.d.ts +34 -0
- package/dist/src/executors/depth/executor.js +11 -0
- package/dist/src/executors/gate/executor.d.ts +37 -0
- package/dist/src/executors/gate/executor.js +20 -0
- package/dist/src/executors/trace/executor.d.ts +33 -0
- package/dist/src/executors/trace/executor.js +21 -0
- package/dist/src/index.d.ts +698 -0
- package/dist/src/index.js +19 -0
- package/executors.json +25 -0
- package/package.json +78 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as e, a as t, b as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "../plugin-context.utilities-bBTXF3Wk.js";
|
|
2
|
+
import y from "node:path";
|
|
3
|
+
//#region packages/ic-suite/callidescope/callidescope-nx/src/index.ts
|
|
4
|
+
var b = {
|
|
5
|
+
createNodes: [c, async (e, t, n) => {
|
|
6
|
+
let r = await (await p()).inferTargets({
|
|
7
|
+
options: t,
|
|
8
|
+
projectConfigurationFiles: e,
|
|
9
|
+
workspaceRoot: n.workspaceRoot
|
|
10
|
+
});
|
|
11
|
+
return e.map((e) => {
|
|
12
|
+
let t = y.dirname(e), n = r.get(t);
|
|
13
|
+
return [e, n === void 0 ? {} : { projects: { [t]: { targets: n } } }];
|
|
14
|
+
}).filter(([, e]) => Object.keys(e).length > 0);
|
|
15
|
+
}],
|
|
16
|
+
name: "@callidescope/nx"
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { v as AddressModule, n as AddressService, l as CALLIDESCOPE_NX_PLUGIN_NAME, o as DEFAULT_BREADTH_TARGET_NAME, a as DEFAULT_DEPTH_TARGET_NAME, e as DEFAULT_GATE_TARGET_NAME, _ as DEFAULT_TRACE_TARGET_NAME, t as MainModule, i as OptionsModule, f as OptionsService, d as PluginModule, m as PluginService, g as ProjectsModule, r as ProjectsService, b as default, h as resolveAddressService, u as resolveOptionsService, p as resolvePluginService, s as resolveProjectsService };
|
package/executors.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../../node_modules/nx/schemas/executors.json",
|
|
3
|
+
"executors": {
|
|
4
|
+
"breadth": {
|
|
5
|
+
"description": "Print one callable's direct callers and callees, resolved against a project and its Nx dependencies.",
|
|
6
|
+
"implementation": "./src/executors/breadth/executor",
|
|
7
|
+
"schema": "./src/executors/breadth/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"depth": {
|
|
10
|
+
"description": "Print every call stack above and below one callable, resolved against a project and its Nx dependencies.",
|
|
11
|
+
"implementation": "./src/executors/depth/executor",
|
|
12
|
+
"schema": "./src/executors/depth/schema.json"
|
|
13
|
+
},
|
|
14
|
+
"gate": {
|
|
15
|
+
"description": "Fail a project whose call stacks broke the depth or breadth limits it is held to, resolved against the project and its Nx dependencies.",
|
|
16
|
+
"implementation": "./src/executors/gate/executor",
|
|
17
|
+
"schema": "./src/executors/gate/schema.json"
|
|
18
|
+
},
|
|
19
|
+
"trace": {
|
|
20
|
+
"description": "Trace a project's call stacks with callidescope, following its Nx dependencies.",
|
|
21
|
+
"implementation": "./src/executors/trace/executor",
|
|
22
|
+
"schema": "./src/executors/trace/schema.json"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Jimmy Paolini",
|
|
3
|
+
"bugs": {
|
|
4
|
+
"url": "https://github.com/Organizzolini/codebase/issues"
|
|
5
|
+
},
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@callidescope/cli": "0.0.1",
|
|
8
|
+
"@callidescope/configuration": "0.0.1",
|
|
9
|
+
"@callidescope/core": "0.0.1",
|
|
10
|
+
"@callidescope/graph": "0.0.1",
|
|
11
|
+
"@callidescope/output": "0.0.1",
|
|
12
|
+
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
13
|
+
"@nestjs/core": "^11.1.21 || ^12.0.1",
|
|
14
|
+
"@nx/devkit": "^23.0.0",
|
|
15
|
+
"pino": "^10.3.1",
|
|
16
|
+
"pino-pretty": "^13.1.3",
|
|
17
|
+
"reflect-metadata": "^0.2.2"
|
|
18
|
+
},
|
|
19
|
+
"description": "Nx plugin providing project-scoped call-stack tracing and depth gating along Nx dependency graphs",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@codebase/logger": "0.0.1",
|
|
22
|
+
"@golevelup/ts-vitest": "^4.0.0",
|
|
23
|
+
"@nestjs/testing": "^12.0.1",
|
|
24
|
+
"@nx/eslint-plugin": "^23.0.0",
|
|
25
|
+
"@swc/helpers": "^0.5.21",
|
|
26
|
+
"@types/node": "^26.5.1",
|
|
27
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
28
|
+
"typescript": "^6.0.3",
|
|
29
|
+
"vitest": "^5.0.0"
|
|
30
|
+
},
|
|
31
|
+
"executors": "./executors.json",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/src/index.d.ts",
|
|
35
|
+
"default": "./dist/src/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./executors.json": "./executors.json",
|
|
38
|
+
"./package.json": "./package.json",
|
|
39
|
+
"./src/executors/*": "./dist/src/executors/*.js"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"executors.json",
|
|
44
|
+
"LICENSE",
|
|
45
|
+
"README.md"
|
|
46
|
+
],
|
|
47
|
+
"homepage": "https://github.com/Organizzolini/codebase/tree/main/packages/ic-suite/callidescope/callidescope-nx#readme",
|
|
48
|
+
"keywords": [
|
|
49
|
+
"call-graph",
|
|
50
|
+
"callidescope",
|
|
51
|
+
"depth-gate",
|
|
52
|
+
"nx",
|
|
53
|
+
"nx-plugin",
|
|
54
|
+
"tracing"
|
|
55
|
+
],
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"main": "./dist/src/index.js",
|
|
58
|
+
"name": "@callidescope/nx",
|
|
59
|
+
"nx": {
|
|
60
|
+
"executors": "./executors.json"
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public",
|
|
64
|
+
"registry": "https://registry.npmjs.org"
|
|
65
|
+
},
|
|
66
|
+
"repository": {
|
|
67
|
+
"directory": "packages/ic-suite/callidescope/callidescope-nx",
|
|
68
|
+
"type": "git",
|
|
69
|
+
"url": "git+https://github.com/Organizzolini/codebase.git"
|
|
70
|
+
},
|
|
71
|
+
"type": "module",
|
|
72
|
+
"typeCoverage": {
|
|
73
|
+
"atLeast": 100,
|
|
74
|
+
"strict": true
|
|
75
|
+
},
|
|
76
|
+
"types": "./dist/src/index.d.ts",
|
|
77
|
+
"version": "0.0.1"
|
|
78
|
+
}
|