forked from TonyOlivero/Test-Triage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
30 lines (27 loc) · 870 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
module.exports = function(grunt) {
//Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
validation: {
options: {
reset: grunt.option('reset') || false,
stoponerror: false,
relaxerror: ["Bad value X-UA-Compatible for attribute http-equiv on element meta."] //ignores these errors
},
files: {
src: ['./*.html', '!./skeleton.html']
}
},
csslint: {
lax: {
options: {
import: false
},
src: ['./*.css']
}
}
});
grunt.loadNpmTasks('grunt-html-validation');
grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.registerTask('default', ['validation', 'csslint']);
};