Grade your sites accessibility and generate a report from different WCAG levels
npm install gulp-accessibilityUses AccessSniff and HTML Codesniffer to grade your sites accessibility using different levels of the WCAG guidelines
npm install gulp-accessibility --save-devThen add this line to your project's gulpfile.js gulpfile:
``javascript`
var access = require('gulp-accessibility');
`javascript
gulp.task('test', function() {
return gulp.src('./example/*/.html')
.pipe(access({
force: true
}))
.on('error', console.log)
.pipe(access.report({reportType: 'txt'}))
.pipe(rename({
extname: '.txt'
}))
.pipe(gulp.dest('reports/txt'));
});
`
You'll need to add the below to convert into other formats
```
.pipe(access.report({reportType: 'txt'}))