dreamzmaster / gulp-pa11y Goto Github PK
View Code? Open in Web Editor NEWAudit accessibility of your site using Gulp
License: GNU General Public License v2.0
Audit accessibility of your site using Gulp
License: GNU General Public License v2.0
Anybody know how to fix this? I've got phantomjs 2.1.1 installed and am setting the web-security parameter:
var test = pa11y({
url: 'google.com',
phantom: {
parameters : {
'web-security': false
}
}
});
I've tried on/false/'on'/'false' and all kinds of other stuff. Nothing seems to work.
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.
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'});
}):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.