forked from Katharine/AjaxLife
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
45 lines (44 loc) · 881 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
45
/* eslint
no-empty-label: 0,
space-before-keywords: 0,
space-after-keywords: 0,
space-return-throw-case: 0
*/
module.exports = function gruntConfig(grunt) {
module.require('load-grunt-tasks')(grunt);
grunt.initConfig({
eslint: {
options: {
configFile: '.eslintrc',
},
Gruntfile: [
'Gruntfile.js',
],
client: [
'server/client/AjaxLife.js',
'server/client/AjaxLife.*.js',
'!server/client/AjaxLife.Libs.js',
],
},
watch: {
Gruntfile: {
files: [
'Gruntfile.js',
],
tasks: [
'eslint:Gruntfile',
],
},
client: {
files: '<%= eslint.client %>',
tasks: [
'eslint:client',
],
},
},
});
grunt.registerTask('default', [
'eslint:Gruntfile',
'eslint:client',
]);
};