Grade your site's accessibility and generate a report from different WCAG levels
npm install grunt-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 [grunt.js gruntfile][getting_started] with: npm install grunt-accessibility
Then add this line to your project's grunt.js gruntfile:
``js`
grunt.loadNpmTasks('grunt-accessibility');
[grunt]: http://gruntjs.com/
[getting_started]: http://gruntjs.com/getting-started
Place this in your grunt file.
`js`
accessibility: {
options: {
accessibilityLevel: 'WCAG2A'
},
test: {
options: {
urls: ['http://localhost']
},
src: ['example/test.html']
}
}
You can link to the files you wish to lint using the grunt api. The result will be the results file.
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][grunt].
- Exit phantom process when processing is done
- Update Dependencies
- Update to grunt 0.4.4
- 0.4 Added in ignore rule, refactored some scripts for better injection via phantom
- 0.3 Fix so you can run another grunt process after running
- 0.2 Fix so people can actually run this thing now
- 0.1.1 Update Documentation for install
- 0.1 Initial release