add a grunt plugin to check accessibility

This commit is contained in:
l50741 2017-04-05 21:30:22 +01:00
parent 1770205ee1
commit 03ad87d651
2 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-chmod");
grunt.loadNpmTasks("grunt-exec");
grunt.loadNpmTasks("grunt-execute");
grunt.loadNpmTasks("grunt-accessibility");
// Project configuration
@ -133,6 +134,14 @@ module.exports = function (grunt) {
],
}
},
accessibility: {
options: {
accessibilityLevel: "WCAG2A"
},
test: {
src: ["build/**/*.html"]
}
},
webpack: {
options: {
plugins: [

View File

@ -35,6 +35,7 @@
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^0.10.1",
"grunt": ">=0.4.5",
"grunt-accessibility": "~5.0.0",
"grunt-chmod": "~1.1.1",
"grunt-contrib-clean": "~1.0.0",
"grunt-contrib-copy": "~1.0.0",