GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - clojure/tools.deps.graph: Dependency graphs for deps.edn projects

BranchesTags
Open more actions menu

Latest commit

 

History

100 Commits
100 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
script
script
 
 
src/main/clojure
src/main/clojure
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
VERSION_TEMPLATE
VERSION_TEMPLATE
 
 
deps.edn
deps.edn
 
 
deps.png
deps.png
 
 
epl.html
epl.html
 
 
pom.xml
pom.xml
 
 

Repository files navigation

tools.deps.graph

A tool for making deps.edn dependency graphs.

Deps

Dependencies

tools.deps.graph uses Graphviz to generate images. You can find a list of platform-specific installations at https://graphviz.gitlab.io/download/.

Usage

Install tools.deps.graph as a Clojure CLI tool so it's available in any project:

clj -Ttools install io.github.clojure/tools.deps.graph '{:git/tag "v1.1.90"}' :as graph

To run the tool in your current project:

clj -Tgraph graph <options>

If no options are provided, tools.deps.graph will create a dependency graph for the current project and display it. Ctrl-C to quit.

When using -T or -X, options:

  • :deps - Path to deps file (default = "deps.edn")
  • :trace - Boolean flag to use trace mode (default = false)
  • :trace-file - Path to trace.edn file to read
  • :output - Output file path
  • :trace-omit - Collection of lib symbols to omit in trace output
  • :size - Boolean flag to include sizes in images (default = false)

Equivalent clojure.main options:

  • -d DEPSFILE - deps.edn file to read, default=deps.edn
  • -t - Trace mode, will output one image per expansion step
  • -f TRACEFILE - Trace file mode - read trace file, don't use deps.edn file
  • -o FILE - Output file, in trace mode, required and will create N images with this as a prefix
  • -a - Concatenated alias names to enable when reading deps file
  • --trace-omit - Comma-delimited list of libs to skip in trace images"
  • --size- Add jar size info to dep graph"

Examples

Show dependency graph for current project:

clj -Tgraph graph

Save dependency graph to deps.png for current project:

clj -Tgraph graph :output '"deps.png"'

Show dependency graph for current project with jar sizes:

clj -Tgraph graph :output '"deps.png"' :size true

Read mydeps.edn, create deps graph, output image to mydeps.png:

clj -Tgraph graph :deps '"mydeps.edn"' :output '"mydeps.png"'

Read deps.edn, trace expansion, output steps as trace100.png, trace101.png, ... :

clj -Tgraph graph :trace true :output '"trace"'

Read mydeps.edn, trace expansion, output trace100.png, ... :

clj -Tgraph graph :deps '"mydeps.edn"' :trace true :output '"trace"'

Use -Strace to output a trace.edn file. Read trace.edn file, output trace100.png, ...

clj -Strace
clj -Tgraph graph :trace-file '"trace.edn"' :output '"trace"'

Release Information

This project follows the version scheme MAJOR.MINOR.COMMITS where MAJOR and MINOR provide some relative indication of the size of the change, but do not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names). COMMITS is an ever-increasing counter of commits since the beginning of this repository.

Latest release: 1.1.90

  • All released versions

deps.edn dependency information:

org.clojure/tools.deps.graph {:mvn/version "1.1.90"}

Developer Information

  • GitHub project
  • How to contribute
  • Bug Tracker
  • Continuous Integration

Copyright and License

Copyright © Rich Hickey, Alex Miller, and contributors

All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.

About

Dependency graphs for deps.edn projects

Topics

clojuredepsedngraph

Resources

Readme
EPL-1.0 license
Activity
Custom properties

Stars

106 stars

Watchers

5 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.