forked from CatalystCode/windows-registry-node
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
59 lines (58 loc) · 1.22 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
var grunt = require('grunt');
require('load-grunt-tasks')(grunt);
var files = ['lib/**/*.js', 'app.js', 'test/**/*.js'];
grunt.initConfig({
mochacli: {
options: {
timeout: 2000,
reporter: 'spec',
bail: true
},
all: ['test/*.js']
},
jshint: {
files: files,
options: {
jshintrc: './.jshintrc'
}
},
jscs: {
files: {
src: files
},
options: {
config: '.jscsrc',
esnext: true
}
},
jsbeautifier: {
test: {
files: {
src: files
},
options: {
mode: 'VERIFY_ONLY',
config: '.beautifyrc'
}
},
write: {
files: {
src: files
},
options: {
config: '.beautifyrc'
}
}
},
watch: {
scripts: {
files: files,
tasks: ['test'],
options: {
spawn: false,
},
},
}
});
grunt.registerTask('test', ['jshint', 'jscs', 'mochacli:all']);
grunt.registerTask('unitTest', ['mochacli:all']);