dm.js icon indicating copy to clipboard operation
dm.js copied to clipboard

Add `compile` function

Open gobwas opened this issue 10 years ago • 0 comments

This function will return all dependencies of a service:

dm.compile('service').then(function(services) {
  console.log(services)// ['serviceA', 'serviceB', 'serviceC']
  //or tree
  console.log(services); // [{'name': 'serviceA', path: '.../...', 'dependencies': [...]}, {name: 'serviceB'...
});

gobwas avatar Nov 27 '14 14:11 gobwas