Skip to content

Commit c31b0da

Browse files
authored
Update README.md
1 parent d51f16c commit c31b0da

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ Pass the `--packages-only` flag to include only the Xcode project and Swift pack
139139

140140
<img width="400" src="./sample-packages-only.png" alt="Example graph showing only an Xcode project and Swift packages." />
141141

142+
For large projects the graph may become unreadable. Passing the output through Grahpviz' [unflatten](https://graphviz.org/docs/cli/unflatten/) command may improve the resutls.
143+
144+
```bash
145+
dependency-graph ~/Developer/Example | unflatten -l 100 -c 100 -f | dot -Tpng -o graph.png
146+
```
147+
142148
## 🤷‍♂️ OK, why?
143149

144150
As I'm splitting my iOS and macOS applications into small Swift packages with several small targets, I started wishing for a way to visualise the relationship between the products and targets in my Swift packages. That's why I built this tool.

0 commit comments

Comments
 (0)