-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
37 lines (35 loc) · 1.11 KB
/
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: ['./*.js']
},
htmllint: {
all: ["public/*.html"],
options: {
ignore: []
}
},
accessibility: {
options : {
accessibilityLevel: 'WCAG2A',
reportLevels: {
notice: false,
warning: false,
error: true
},
//the following are ignored by the accessability checker - if edited, please leave rationale for doing so!
ignore :[
"WCAG2A.Principle2.Guideline2_4.2_4_1.H64.1" //ignored becuse thrown by stripe iframe - unfixable
]
},
test : {
src: ['public/*.html']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-html');
grunt.loadNpmTasks('grunt-accessibility');
grunt.registerTask('default', ['jshint', 'htmllint', 'accessibility']);
};