-
Notifications
You must be signed in to change notification settings - Fork 41
/
Gruntfile.js
54 lines (50 loc) · 1.24 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
'use strict';
module.exports = grunt => {
require('@lodder/time-grunt')(grunt);
grunt.initConfig({
htmllint: {
valid: 'test/fixtures/valid.html',
invalid: 'test/fixtures/*.html',
manyFiles: 'test/fixtures/many-files/*.html',
ignore: {
options: {
ignore: 'The “clear” attribute on the “br” element is obsolete. Use CSS instead.'
},
src: 'test/fixtures/*.html'
},
invalidPhp: {
options: {
ignore: /XML processing instructions/
},
src: 'test/fixtures/*.php'
},
checkstyle: {
options: {
reporter: 'checkstyle'
},
src: 'test/fixtures/*.html'
},
json: {
options: {
reporter: 'json'
},
src: 'test/fixtures/no-doctype.html'
},
jsonReporterOutput: {
options: {
reporter: 'json',
reporterOutput: '.tmp/reporterOutput.json'
},
src: 'test/fixtures/no-doctype.html'
}
}
});
grunt.loadTasks('tasks');
grunt.registerTask('test', 'htmllint');
grunt.registerTask('ci', [
'htmllint:valid',
'htmllint:json',
'htmllint:jsonReporterOutput'
]);
grunt.registerTask('default', 'test');
};