Skip to content

Using streams #13

@okeul

Description

@okeul

Hello !

First of all, thank you for the work done.

Sorry to create another issue (duplicate of #1), but I would like to use this plugin with streams.

I tried this :

var paths = require('../../paths');
var watch = require('../watch');
var plumberLazypipe = require('../../lib/lazypipes/plumber');
 
module.exports = function(gulp, plugins) {
  return function() {
    var src = paths.dest;
    if (paths.dir) {
      src = src + '/' + paths.dir;
    }
    src = src + '/**/*.{htm,html,jshtml,shtml}';
 
    watch.create(gulp, plugins, src, 'lint-a11y', 'watch-lint-a11y');
 
    return gulp.src(src, {
      base: paths.dest
    })
      .pipe(plumberLazypipe(plugins)())
      .pipe(plugins.axeWebdriver({
        headless: true,
        urls: [src]
      }));
  };
};

It works almost but I still have an error in the console about pipe (indeed because this plugin isn't intended to work with a stream).

log

Do you have any idea ?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions