npm

Need private packages and team management tools?Check out npm Orgs. »

gulp-htmlhint-html-reporter

1.0.1 • Public • Published

gulp-htmlhint-html-reporter

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

Installation

npm install gulp-htmlhint-html-reporter --save

Usage

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

Options

Plugin options:

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

The filename to write output from htmlhint. 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 © AppFeel

Release History

  • 1.0.0 Initial release

install

npm i gulp-htmlhint-html-reporter

Downloadsweekly downloads

18

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability