@mjambon wrote:
Is there already a good way to view a dependency graph between components of a dune/jbuilder project?
I’m looking for something that would illustrate the dependencies between components of a project. It should help a developer understand a codebase and navigate it quickly. Dependencies between OCaml modules (compilation units) may be too fine-grained for this purpose. We could consider the dependencies between libraries, say all the libraries built in the current project. This seems like it would be great. Other than that, perhaps the dependencies between jbuild files, if such notion exists, would probably work great as well. I can imagine the following:
$ jbuilder internal-deps component1: component0 component2: component1 component3: component0 component4: component1 component3
where “components” are either paths to jbuild files or libraries built by the project.
Suggestions? Thoughts?
Posts: 5
Participants: 4