Gulp Puppeteer Accessibility Audit
Gulp plugin for Puppeteer Accessibility Audit
Installation
npm install --save-dev gulp-puppeteer-accessibility-audit
or
yarn add --dev gulp-puppeteer-accessibility-audit
Usage
const paa = ; gulp;
Reporters
There are 3 reporters available for use.
reporter
- Reports at the end all passes and fails, does not trigger a failurefailAfterError
- Reports at the end but only prints failures and will emit an errorfailOnError
- Will emit an error on the first failure
Config
All config data passed into paa
will be passed directly to Puppeteer Accessibility Audit
puppeteerConfig
is passed to: puppeteer.launchviewport
is passed to: page.setViewportauditScopeSelector
is used to target the audit and is passed to adocument.querySelector
.
For example
const paa = ; gulp;
Credits
Lots of copy and pasting of gulp-a11y by Michael Pezzi