broccoli-plato
v0.2.0
Published
Plato code analyzer for broccoli
Downloads
4
Maintainers
Readme
broccoli-plato
Run Plato in Broccoli pipeline. Plato is JavaScript source code visualization, static analysis, and complexity tool.
Output example.
Installation
npm install --save-dev broccoli-plato
Configuration
All of the available options can be found on Plato's documentation.
Usage
var platoReporter = require('broccoli-plato');
var mergeTrees = require('broccoli-merge-trees');
var concat = require('broccoli-concat');
var appTree = concat('app/', {
inputFiles: ['**/*.js'],
outputFile: '/assets/scripts.js'
});
var platoTree = platoReporter(['app', 'lib'], {
destDir: 'report',
options: {
recurse: true
}
});
module.exports = mergeTrees([appTree, platoTree]);
License
The MIT License (MIT)