Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

sindresorhus/gulp-plato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 23, 2014
df154ee · Nov 23, 2014

History

22 Commits
Sep 2, 2014
Jan 3, 2014
Jan 3, 2014
Sep 2, 2014
Jan 3, 2014
Sep 2, 2014
Sep 2, 2014
Nov 23, 2014
Nov 23, 2014
Sep 2, 2014

Repository files navigation

gulp-plato Build Status

Deprecated. Just use plato directly.

Generate complexity analysis reports with plato

Issues with the output should be reported on the plato issue tracker.

Install

$ npm install --save-dev gulp-plato

Usage

var gulp = require('gulp');
var plato = require('gulp-plato');

gulp.task('default', function () {
	return gulp.src('app.js')
		.pipe(plato('report', {
			jshint: {
				options: {
					strict: true
				}
			},
			complexity: {
				trycatch: true
			}
		}));
});

API

plato(destDir, options)

destDir

Required
Type: string

Report destination.

options.jshint

Type: object

Options passed to JSHint.

options.complexity

Type: object

Options passed to complexity-report.

License

MIT © Sindre Sorhus