-
Notifications
You must be signed in to change notification settings - Fork 23
/
Gruntfile.js
32 lines (30 loc) · 931 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
module.exports = function (grunt) {
grunt.config.init({
bump: {
options: { push: false }
},
jshint: {
options: { jshintrc: '.jshintrc' },
all: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']
},
simplemocha: {
options: {
globals: ['describe'],
timeout: 3000,
reporter: 'spec',
ui: 'bdd'
},
files: ['test/**/*.js']
},
watch: {
files: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js'],
tasks: ['jshint', 'simplemocha']
}
});
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.registerTask('default', ['watch']);
grunt.registerTask('test', ['simplemocha']);
};