yargalot / gulp-accessibility

Gulp plugin for AccessSniff
48 stars 12 forks source link

Can't stop output to CLI #16

Closed JCron245 closed 7 years ago

JCron245 commented 7 years ago

I was attempting to make this task only report to a file and not output to the CLI, but it seems to ignore the verbose option. It properly makes the report file but I was trying to find a way to stop the CLI output.

gulp.task('wcag_report', function() {
  gulp.src(html_paths)
  .pipe(access({
    force: true,
    verbose: false,
  }))
  .pipe(access.report({reportType: 'txt'}))
  .pipe(rename({
    prefix: 'wcag',
    basename: '-report',
    extname: '.txt'
  }))
  .pipe(gulp.dest('reports/'));
});
yargalot commented 7 years ago

That would be an issue with AccessSniff, Will have a look over there

yargalot commented 7 years ago

https://github.com/yargalot/AccessSniff/commit/e5d3e4ed795a5bd09b6eb11ecb3d81eb80108d55

yargalot commented 7 years ago

Fixed in 2.4.6