-
Notifications
You must be signed in to change notification settings - Fork 18
/
Gruntfile.js
38 lines (36 loc) · 1013 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
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
node: true
},
all: ['*.js', 'src/*.js', 'examples/*.js', 'test/*.js']
},
cafemocha: {
testThis: {
src: 'test/**/*.js',
options: {
ui: 'tdd',
reporter: 'spec'
}
}
},
groc: {
javascript: [
"src/*.js", "README.md"
],
options: {
"out": "docs/",
"whitespace-after-token": false
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-cafe-mocha');
grunt.loadNpmTasks('grunt-groc');
grunt.registerTask('lint', ['jshint']);
grunt.registerTask('test', ['cafemocha']);
grunt.registerTask('doc', ['groc']);
grunt.registerTask('default', ['test', 'lint', 'doc']);
};