gulp-jshint-html-reporter
v0.1.4
Published
Simple generator of HTML report for gulp-jshint that writes its output to a html file which looks pretty
Downloads
3,543
Maintainers
Readme
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
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