Lihuanghe / gulp-jshint-html-reporter

A simple reporter for gulp-jshint that writes it's output to a html file which looks pretty.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-jshint-html-reporter

A simple reporter for gulp-jshint that writes it's output to a html file which looks pretty.

Installation

$: npm install gulp-jshint-html-reporter --save

Usage

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

gulp.task('lint', function() {
  return gulp.src('./lib/*.js')
    .pipe(jshint())
    .pipe(jshint.reporter('gulp-jshint-html-reporter', {
      filename: __dirname + '/jshint-output.html',
      createMissingFolders : false  
    }));
});

Options

Plugin options:

Type: filename Default: "jshint-output.html"

The filename to write output from jshint. When linting is successfull, the file is not created.

Type: createMissingFolders Default: false

Enables or disables creation of any folders given in the filename that do not exist. If disabled and the given path contains folders which do not exist, an ENOENT error is thrown.

License

MIT © Ivan Vesely

Release History

  • 0.1.0 Initial release
  • 0.1.1 Minor fix with configuration
  • 0.1.2 Minor bug fix on jshint output file
  • 0.1.3 Add option for create missing folder

About

A simple reporter for gulp-jshint that writes it's output to a html file which looks pretty.

License:MIT License


Languages

Language:JavaScript 79.2%Language:HTML 20.8%