forked from byte-source/grunt-wcag-accessibility
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
39 lines (33 loc) · 989 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = function(grunt) {
// Time Grunt
require('time-grunt')(grunt);
// Load Development scripts
require('load-grunt-tasks')(grunt, {
scope: 'devDependencies'
});
// Load Grunt Accessibility
grunt.loadTasks('tasks');
grunt.initConfig({
accessibility: {
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/'
]
}
}
}
});
grunt.registerTask('default', ['accessibility']);
};