Skip to content

Instantly share code, notes, and snippets.

@ilanbiala
Last active August 29, 2015 14:15
Show Gist options
  • Save ilanbiala/76c7730c4e28798fa207 to your computer and use it in GitHub Desktop.
Save ilanbiala/76c7730c4e28798fa207 to your computer and use it in GitHub Desktop.
Plato
var glob = require('glob'),
plato = require('plato');
function plato(cb) {
var files = glob.sync('./app/**/*.js')
.concat(glob.sync('./config/**/*.js'))
.concat(glob.sync('./public/modules/**/*.js'));
return plato.inspect(files, './report', { title: 'Plato report' }, function(reports) {
var overview = plato.getOverviewReport(reports);
console.log(overview.summary);
if (cb) {
cb();
}
});
}
gulp.task('analyze', gulp.parallel(plato));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment