Print reverse dependency tree?

15 views
Skip to first unread message

Clint

unread,
May 16, 2016, 8:31:24 AM5/16/16
to jspm
Is there a way to display a "reverse" dependency tree?

In other words, to easily see what packages depend on something (other than looking through the SystemJS config file)? Or perhaps this is a merge request opportunity. ;)

Thanks!

Guy Bedford

unread,
May 16, 2016, 6:20:07 PM5/16/16
to Clint, jspm
You're probably best off using the builder API directly and running some custom dependency analysis on that - 

var Builder = requrie('jspm').Builder;

var builder = new Builder(baseURL);
builder.trace('module').then(function(tree) {
  // tree is an hash of moduleName: loadRecord
  // load records have deps, depMap, etc etc
});

--
You received this message because you are subscribed to the Google Groups "jspm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jspm-io+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages