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 with: npm install grunt-accessibility
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-accessibility');
Place this in your grunt file.
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.
- New version of AccessSniff
- Lots of cleanup
- Move to using AccessSniff
- Fix
SRC
globbing pattern - Fix partial support
- Columns and line numbers now exist in the library
- Add output format to generate reports
- Add accessibiltyrc option
- Add line and column number to issues
- Lots of other tweaks and fixes
- Add JSON report option
- Add Dom Element option
- Add Force option
- Add Verbose option
- 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
Copyright (c) 2014 Steven Miller Licensed under the MIT license.