Giter VIP home page Giter VIP logo

gulp-pa11y's People

Contributors

dreamzmaster avatar rhewitt22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gulp-pa11y's Issues

Using pa11y in the Gulp task stream

Is there a way to use pa11y in the Gulp task stream? Something like:

var pa11y = require('gulp-pa11y');

gulp.task('build', function() {
    return gulp.src('index.html')
        .pipe(pa11y());
});

The documentation is not clear on this front. It seems to me that this would be the most common use case since it would function similarly to other Gulp plugins like linters. As of right now, if I write this code in my gulpfile.js, I would get an error. I kinda anticipated this since this kind of code is not mention in the documentation, but from reading the documentation I do not have any idea of how exactly do I use this plugin.

Any help? This seems like a great plugin.

Question: passing config options

How do you pass the configuration options to the gulp task (or specify the location of the configuration json file)? Would you mind providing an example task with the required url config?

I can run a task successfully with the following, but I get no output results in the console (whereas if I run pa11y via command line for the same url, I DO get results).

gulp.task('pa11y', function() {
    pa11y({ url: 'http://whatever.url'});
}):

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.