[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] depgraph 0.1.0
- From: Peter Melnichenko <mpeterval@...>
- Date: Fri, 18 Dec 2015 23:26:35 +0300
Hi,
This is the first release of depgraph rock that provides 'luadepgraph'
command-line tool for building graphs of Lua packages:
https://github.com/mpeterv/depgraph
You can make nice images showing dependencies between modules using
'luadepgraph' plus 'dot', command-line tool that is a part of Graphviz:
git clone https://github.com/stevedonovan/Penlight
cd Penlight
luadepgraph --dot | dot -Tgif -o penlight.gif
(penlight.gif should look like http://i.imgur.com/UyZG3y4.gif)
Or you can do some simple analysis: list dependants of a module,
show external dependencies or look for circular dependencies:
git clone https://github.com/keplerproject/luarocks
cd luarocks
luadepgraph -m src/luarocks -p src -e src/bin --show luarocks.install
luadepgraph -m src/luarocks -p src -e src/bin --deps
luadepgraph -m src/luarocks -p src -e src/bin --cycles
(Not showing the output, it's long, there are 11 dependency cycles!)
depgraph can be installed using LuaRocks: 'luarocks install depgraph'.
Enjoy!
-- Peter