https://github.com/appfeel/gulp-htmlhint-html-reporter
A simple reporter for gulp-htmlhint that writes it's output to a html file which looks pretty.
https://github.com/appfeel/gulp-htmlhint-html-reporter
Last synced: about 2 months ago
JSON representation
A simple reporter for gulp-htmlhint that writes it's output to a html file which looks pretty.
- Host: GitHub
- URL: https://github.com/appfeel/gulp-htmlhint-html-reporter
- Owner: appfeel
- License: mit
- Created: 2016-03-09T18:41:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-09T23:36:49.000Z (about 9 years ago)
- Last Synced: 2025-03-19T17:04:11.897Z (2 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gulp-htmlhint-html-reporter
====================A simple reporter for [gulp-htmlhint](https://www.npmjs.com/package/gulp-htmlhint) that writes it's output to an html file which looks pretty.
## Installation
```bash
npm install gulp-htmlhint-html-reporter --save
```## Usage
```javascript
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](http://opensource.org/licenses/MIT) © [AppFeel](https://appfeel.com)
## Release History
* 1.0.0 Initial release