Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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