Last active
August 29, 2015 14:15
-
-
Save ilanbiala/76c7730c4e28798fa207 to your computer and use it in GitHub Desktop.
Plato
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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