Skip to content

Instantly share code, notes, and snippets.

@thanpolas
Created February 18, 2014 13:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanpolas/9071310 to your computer and use it in GitHub Desktop.
Save thanpolas/9071310 to your computer and use it in GitHub Desktop.
List required files by Mantri
var mantri = require('mantri');
var mantriCompile = require('mantri/lib/mantri-build-compile');
mantriCompile.getDepsFiles({
jsRoot: './js',
src: './js/app.js',
gmockDir: mantri.helpers.getPath('closure-mock'),
}, function(status, results) {
console.log('Status should be true:', status);
console.log('files:\n', results);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment