add a grunt plugin to check accessibility
This commit is contained in:
parent
1770205ee1
commit
03ad87d651
@ -50,6 +50,7 @@ module.exports = function (grunt) {
|
|||||||
grunt.loadNpmTasks("grunt-chmod");
|
grunt.loadNpmTasks("grunt-chmod");
|
||||||
grunt.loadNpmTasks("grunt-exec");
|
grunt.loadNpmTasks("grunt-exec");
|
||||||
grunt.loadNpmTasks("grunt-execute");
|
grunt.loadNpmTasks("grunt-execute");
|
||||||
|
grunt.loadNpmTasks("grunt-accessibility");
|
||||||
|
|
||||||
|
|
||||||
// Project configuration
|
// Project configuration
|
||||||
@ -133,6 +134,14 @@ module.exports = function (grunt) {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
accessibility: {
|
||||||
|
options: {
|
||||||
|
accessibilityLevel: "WCAG2A"
|
||||||
|
},
|
||||||
|
test: {
|
||||||
|
src: ["build/**/*.html"]
|
||||||
|
}
|
||||||
|
},
|
||||||
webpack: {
|
webpack: {
|
||||||
options: {
|
options: {
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
"extract-text-webpack-plugin": "^2.1.0",
|
"extract-text-webpack-plugin": "^2.1.0",
|
||||||
"file-loader": "^0.10.1",
|
"file-loader": "^0.10.1",
|
||||||
"grunt": ">=0.4.5",
|
"grunt": ">=0.4.5",
|
||||||
|
"grunt-accessibility": "~5.0.0",
|
||||||
"grunt-chmod": "~1.1.1",
|
"grunt-chmod": "~1.1.1",
|
||||||
"grunt-contrib-clean": "~1.0.0",
|
"grunt-contrib-clean": "~1.0.0",
|
||||||
"grunt-contrib-copy": "~1.0.0",
|
"grunt-contrib-copy": "~1.0.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user