[Feature Request] Save dependency graph to image file
See original GitHub issueExpected Behavior
Be able to save the dependency graph in an image file.
Something like: yarn nx affected:dep-graph --saveAs="dep-graph.png"
Current Behavior
It is not possible to save the graph as an image with yarn nx dep-graph cmd
Context
The final goal would be to be able to post this image in new pull request with github actions for example
Issue Analytics
- State:
- Created 4 years ago
- Reactions:14
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Saving Dependency Graphs? - FreeCAD Forum
I think it is worth a feature request, to be able to export the dependency-graph at least as png with the FreeCAD build-in...
Read more >How to download and export Chart.js images - QuickChart
There are a handful of ways you can turn your Chart.js chart into an image and export it to a file. Use toBase64Image()...
Read more >pydeps — pydeps 1.11.0 documentation
Python module dependency visualization. This package is primarly intended to be used from the command line through the pydeps command. Contents. pydeps.
Read more >debtree - show relationships between packages
Dependency graphs will by default show (pre-)dependencies, recommended packages, unversioned conflicts, and virtual packages provided by the requested ...
Read more >Dependency list - GitLab Docs
For system dependencies, this lists the image that was scanned. For application dependencies, this shows a link to the packager-specific lock file in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just in case in can be useful, there are some external tools available to do that, such as capture-website (using puppeteer under the hood --> may not work on every single system though)
It comes with plenty of options to tweak the capture
I’m investigating how we can implement outputting the dep graph as an image. A recent PR added the ability to output a static HTML version of the dep graph: https://github.com/nrwl/nx/pull/3049. Look for the static HTML option in our next release.