sverweij / dependency-cruiser

Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.
https://npmjs.com/dependency-cruiser
MIT License
5.15k stars 249 forks source link

Feature request: Graph shown as table/grid #953

Open bastian-fenske opened 4 weeks ago

bastian-fenske commented 4 weeks ago

We have an app with "modules" and layers. "Modules" in this sense are groups of functionalities build around a specific area of our domain, not modules in the sense of Typescript files, ES Modules etc. The directory structure is /src/app/{moduleName}/{layerName}/... where layerName can be one of ui, application, domain or infrastructure. I would love to create an SVG where I have the nodes arranged in a grid with modules#layers so that there would be one row for each module and one column for each layer.

Something like this:

+---------------------------------------------------------+
|  User                                                   |
| +----+  +-------------+  +--------+  +----------------+ |
| | ui |  | application |  | domain |  | infrastructure | |
| +----+  +-------------+  +--------+  +----------------+ |
+---------------------------------------------------------+

+---------------------------------------------------------+
|  Dashboard                                              |
| +----+  +-------------+  +--------+  +----------------+ |
| | ui |  | application |  | domain |  | infrastructure | |
| +----+  +-------------+  +--------+  +----------------+ |
+---------------------------------------------------------+

+---------------------------------------------------------+
|  Chart                                                  |
| +----+                   +--------+  +----------------+ |
| | ui |                   | domain |  | infrastructure | |
| +----+                   +--------+  +----------------+ |
+---------------------------------------------------------+

Is anybody aware of a simple way to implement this feature?

github-actions[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.