-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
39 lines (36 loc) · 988 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
/**
* Created by Akshaya Shanbhogue on 2/10/2015.
*/
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'tests/**/*.js', 'index.js'],
options: {
globals: {
jQuery: true
}
}
},
simplemocha: {
options: {
globals: ['expect'],
timeout: 3000,
ignoreLeaks: false,
ui: 'bdd',
reporter: 'tap'
},
all: { src: ['tests/*.js'] }
},
watch: {
files: ['<%= jshint.files %>'],
tasks: ['jshint']
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.registerTask('default', ['jshint', 'watch']);
grunt.registerTask('test', [
'simplemocha'
]);
};