auchenberg / dependo

Visualize your CommonJS or AMD module dependencies in a force directed graph report.
MIT License
484 stars 50 forks source link

-v/--reverse option allows for arrow reversal, -t allows title #22

Closed deanrad closed 9 years ago

deanrad commented 9 years ago
# two things point to underscore
./bin/dependo -f cjs lib/ > example/index.html ; open example/index.html

# underscore points to two things
./bin/dependo -v -f cjs lib/ > example/index.html ; open example/index.html
deanrad commented 9 years ago

The scenario -v supports is this:

When A depends on B, the order of tasks that must be done is B, then A. So it's sometimes useful to see things in reverse order. Put another way:

The converse of the dependency graph is the integration plan. -- Dwayne "The Rock" Johnson (I think)

This feature supports viewing the "integration plan". But equivalently, "reverses the arrows" describes it just fine.

deanrad commented 9 years ago

I believe this is ready for review now.

auchenberg commented 9 years ago

LGTM :+1: I hadn't though of this functionality, so let's get it in.

deanrad commented 9 years ago

TY! version bump and publish ?

auchenberg commented 9 years ago

Done.

deanrad commented 9 years ago

ty!