Open hamishtaplin opened 8 years ago
Hello :-),
I don't have enough skills for that, but feel free to do so! Sounds a good idea :-).
Just looking into the possibility right now. I think if the code was written as a module (ie. it exported an API) it would make this process a bit easier. Will let you know how far I get.
@hamishtaplin Ok :-). Can't we just run a11ym
in CLI?
@Hywan not sure what you mean, that's what it does currently?
For this to be suitable to be a gulp plugin, you'd have to have two things:
That seems like a lot of re-factoring would need to happen, not sure you'd even be able to keep the existing implementation of it being accessible from CLI in that case. I might well be wrong though, not really my area of expertise.
We can do such a refactoring. It's not going to be huge. We develop this tool very quickly because we were running out of time, but I will try to find more time to do that.
Do you want to keep the crawler with Gulp? I guess yes.
Yes to the crawler :+1:
Now it's my priority for this project :smiley:.
Hello :-),
Now we have the lib/bin.js
module, so I guess it will be easier to integrate it with Gulp. Thoughts?
Example:
var a11ym = require('./lib/bin');
var options = {
'errorLevel': 'warning',
'maximumUrls': 42,
'outputDirectory': '/dev/null' // oops
};
var inputs = ['http://example.org'];
a11ym.start(options, inputs);
Have you considered writing a Gulp plugin for this? Would be really nice to be able to pipe tests/results in to existing build processes.