https://www.npmjs.com/package/grunt-wcag-accessibility
Uses AccessSniff and HTML Codesniffer to grade your site's accessibility using different levels of the WCAG guidelines.
Install this grunt plugin next to your project's Gruntfile.js with:
npm install grunt-wcag-accessibility
Or save it in your package.json file
npm install grunt-wcag-accessibility --save
Place this in your Gruntfile.js
options: {
accessibilityLevel: 'WCAG2AA',
force: true,
maxBuffer: '1024*1024',
verbose: false,
reportLevels: {
notice: false,
warning: false,
error: true
}
},
report: {
options: {
urls: ['http://www.w3schools.com/',
'http://www.tutorialspoint.com/'
]
}
}
You can generate report in 4 formats:
- HTML
- JSON
- CSV
- TXT
Default is the HTML Report.
View AccessSniff options for all available options.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Steven John Miller (http://www.stevenjohnmiller.com/) : https://github.com/yargalot/grunt-accessibility
Squizlabs : https://github.com/squizlabs/HTML_CodeSniffer