-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
60 lines (52 loc) · 1.01 KB
/
grunt.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
'use strict';
module.exports = function(grunt) {
require('should');
require('coffee-script');
grunt.loadNpmTasks('grunt-simple-mocha');
// Project configuration.
grunt.initConfig({
pkg : '<json:package.json>',
simplemocha: {
all: {
src: 'test/**/*.coffee',
options: {
timeout: 3000,
ignoreLeaks: true,
ui: 'bdd',
reporter: 'min'
}
}
},
lint: {
all : ['grunt.js',
'src//**/*.js']
},
jshint : {
options : {
globalstrict : true,
laxcomma : true,
laxbreak : true,
loopfunc: true,
sub : true,
node : true,
browser : true,
curly : true,
eqeqeq : true,
forin : false,
undef : true,
immed : true,
latedef : true,
newcap : true,
noarg : true,
nonew : true,
trailing : true,
quotmark: true
}
},
watch : {
files : ['grunt.js', 'src/**/*.js', 'test/**/*.coffee'],
tasks : ['lint', 'simplemocha']
}
});
grunt.registerTask('default', 'lint simplemocha');
};