-
Notifications
You must be signed in to change notification settings - Fork 16
/
Gruntfile.js
44 lines (37 loc) · 949 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
40
41
42
43
44
/*global module:false*/
module.exports = function (grunt) {
var sourceFiles = ['camel_case.js', 'no-*.js', 'potential-point-free.js'];
grunt.initConfig({
filenames: {
options: {
valid: 'dashes',
except: 'verify-md5.js'
},
src: [sourceFiles, '!camel_case.js']
},
eslint: {
target: sourceFiles,
options: {
config: '.eslintrc',
rulesdir: ['.']
}
},
jshint: {
all: sourceFiles,
options: {
jshintrc: 'utils/.jshintrc',
reporter: require('jshint-summary')
}
},
jscs: {
src: sourceFiles,
options: {
config: 'utils/jscs.json'
}
}
});
var plugins = module.require('matchdep').filterDev('grunt-*');
plugins.forEach(grunt.loadNpmTasks);
grunt.registerTask('lint', ['filenames', 'jshint', 'jscs', 'eslint']);
grunt.registerTask('default', ['deps-ok', 'nice-package', 'lint']);
};