-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
49 lines (44 loc) · 977 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
46
47
48
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
eslint: {
options: {
config: 'config/eslint.json'
},
target: [
'bin/*',
'processors/**/*.js',
'simulation/**/*.js',
'*.js'
]
},
simplemocha: {
options: {
slow: 60,
growl: true,
ui: 'bdd',
debug: true,
recursive: true,
reporter: 'spec',
timeout: 10000,
require: ['test/config']
},
all: { src: 'test/**/*.js' }
},
watch: {
source: {
options: {
atBegin: true,
livereload: true
},
files: '<%= eslint.target %>',
tasks: 'eslint'
}
}
});
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('test', ['eslint', 'simplemocha']);
grunt.registerTask('default', ['watch']);
};