-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
44 lines (39 loc) · 867 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
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
gruntfile: {
src: 'Gruntfile.js'
},
app: {
src: ['js/*.js', '*.js']
}
},
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
tasks: ['jshint:gruntfile']
},
app: {
files: '<%= jshint.app.src %>',
tasks: ['jshint:app']
}
},
notify_hooks: {
options: {
enabled: true,
max_jshint_notifications: 5
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-notify');
// Default task.
grunt.registerTask('default', ['jshint']);
};