Skip to content

Instantly share code, notes, and snippets.

@josevalim
Last active July 20, 2018 15:48
Show Gist options
  • Save josevalim/67cc4fdbd66f96c647fd to your computer and use it in GitHub Desktop.
Save josevalim/67cc4fdbd66f96c647fd to your computer and use it in GitHub Desktop.
Sample output of the new "mix app.tree" and "mix deps.tree" tasks in a Phoenix project (using master). The first command shows the applications you will effectively need at runtime in production while "deps.tree" is your whole dependency tree, including compile time, dev and test dependencies.
$ mix app.tree
demo
├── elixir
├── phoenix
│ ├── elixir
│ ├── plug
│ │ ├── elixir
│ │ ├── crypto
│ │ └── logger
│ │ └── elixir
│ ├── poison
│ │ └── elixir
│ ├── logger
│ │ └── elixir
│ └── eex
│ └── elixir
├── phoenix_html
│ ├── elixir
│ ├── logger
│ │ └── elixir
│ └── plug
│ ├── elixir
│ ├── crypto
│ └── logger
│ └── elixir
├── cowboy
│ ├── ranch
│ ├── cowlib
│ │ └── crypto
│ └── crypto
├── logger
│ └── elixir
├── gettext
│ ├── elixir
│ └── logger
│ └── elixir
├── phoenix_ecto
│ ├── elixir
│ ├── logger
│ │ └── elixir
│ └── ecto
│ ├── elixir
│ ├── logger
│ │ └── elixir
│ ├── decimal
│ │ └── elixir
│ └── poolboy
└── postgrex
├── elixir
├── logger
│ └── elixir
├── db_connection
│ ├── elixir
│ ├── logger
│ │ └── elixir
│ └── connection
│ └── elixir
└── decimal
└── elixir
$ mix deps.tree
demo
├── gettext ~> 0.9 (Hex package)
├── cowboy ~> 1.0 (Hex package)
│ ├── cowlib ~> 1.0.0 (Hex package)
│ └── ranch ~> 1.0 (Hex package)
├── phoenix_html ~> 2.3 (Hex package)
│ └── plug ~> 0.13 or ~> 1.0 (Hex package)
│ └── cowboy ~> 1.0 (Hex package)
├── phoenix (../..) *override*
│ ├── cowboy ~> 1.0 (Hex package)
│ ├── plug ~> 1.0 (Hex package)
│ │ └── cowboy ~> 1.0 (Hex package)
│ ├── phoenix_pubsub (https://github.com/phoenixframework/phoenix_pubsub.git)
│ └── poison ~> 1.5 or ~> 2.0 (Hex package)
├── phoenix_live_reload ~> 1.0 (Hex package)
│ ├── phoenix ~> 0.16 or ~> 1.0 (Hex package)
│ └── fs ~> 0.9.1 (Hex package)
├── postgrex >= 0.0.0 (Hex package)
│ ├── decimal ~> 1.0 (Hex package)
│ ├── db_connection ~> 0.2 (Hex package)
│ │ └── connection ~> 1.0.2 (Hex package)
│ └── connection ~> 1.0 (Hex package)
└── phoenix_ecto ~> 2.0 (Hex package)
├── phoenix_html ~> 2.2 (Hex package)
└── ecto ~> 1.1.2 (Hex package)
├── postgrex ~> 0.11.0 (Hex package)
├── poolboy ~> 1.4 (Hex package)
└── decimal ~> 1.0 (Hex package)
@nirev
Copy link

nirev commented Feb 4, 2016

@duff
Copy link

duff commented Feb 4, 2016

💟

@potto007
Copy link

potto007 commented Feb 4, 2016

ub1ae4

@mindreframer
Copy link

AWESOME!!

@gonglexin
Copy link

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment