forked from CFenner/MMM-Netatmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
45 lines (42 loc) · 1.06 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
module.exports = function(grunt) {
grunt.initConfig({
eslint: {
src: ['.'],
options: {
format: 'junit'
}
},
jsonlint: {
src: ['*.json'],
options: {
formatter: 'prose',
format: true,
indent: 2
}
},
yamllint: {
src: ['.travis.yml', '.codeclimate.yml'],
options: {
schema: 'DEFAULT_SAFE_SCHEMA'
}
},
csslint: {
src: ['netatmo.css'],
options: {
formatters: [
{id: 'lint-xml', dest: 'report/csslint.jslint.xml'},
{id: 'csslint-xml', dest: 'report/csslint.xml'}
]
}
}
});
//grunt.loadNpmTasks('grunt-contrib-less');
//grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-csslint');
//grunt.loadNpmTasks("grunt-contrib-eslint");
grunt.loadNpmTasks("grunt-jsonlint");
grunt.loadNpmTasks('grunt-yamllint');
grunt.loadNpmTasks("gruntify-eslint");
grunt.registerTask('default', ['test']);
grunt.registerTask('test', ['eslint', 'jsonlint', 'csslint', 'yamllint']);
};