Skip to content

Mobelux/swift-dependency-graph-plugin

Repository files navigation

DependencyGraphPlugin

The Swift-TargetDependencyGraph plugin is a Swift Package Manager command plugin that supports generating a diagram of target dependencies with Graphviz.

Requirements

  • Swift 5.6+
  • Graphviz installed and available in your PATH

Usage

Adding the Swift-DocC Plugin as a Dependency

Add the package to your dependencies.

let package = Package(
    // name, platforms, products, etc.
    dependencies: [
        // other dependencies
        .package(url: "https://github.com/mobelux/swift-dependency-graph-plugin", from: "1.0.0"),
    ],
    targets: [
        // targets
    ]
)

Creating a Target Dependency Graph

Create a diagram of a target's dependencies:

swift package --allow-writing-to-package-directory dependency-graph

You can specify targets to exclude by adding --exclude <excluded targets>

Acknowledgements

Alternatives

About

SwiftPM command plugin to generate a diagram of target dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages