forked from abbr/nagios-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
38 lines (34 loc) · 841 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
module.exports = function(grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
grunt.initConfig({
watch: {
js: {
files: ['lib/**/*.js', 'spec/**/*.spec.js'],
tasks: ['default']
}
},
// Make sure code styles are up to par and there are no obvious mistakes
jshint : {
options : {
jshintrc : '.jshintrc',
reporter : require('jshint-stylish')
},
all : ['lib/{,*/}*.js'],
test : {
options : {
jshintrc : 'spec/.jshintrc'
},
src : ['spec/{,*/}*.js']
}
},
shell: {
test: {
options: { stdout: true },
command: 'jasmine-node spec/'
}
}
});
grunt.registerTask('test', 'shell:test');
grunt.registerTask('default', ['jshint','shell:test']);
}