forked from tantalic/grunt-gitbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
36 lines (32 loc) · 861 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
var path = require("path");
module.exports = function (grunt) {
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.initConfig({
gitbook: {
development: {
output: path.join(__dirname, "test/dest"),
input: "test/input",
title: "Test",
github: "GitbookIO/grunt-gitbook"
}
},
mochaTest: {
options: {
reporter: 'xunit',
captureFile: 'tests.xml'
},
files: ['test/*_test.js']
},
clean: {
files: 'test/dest'
}
});
grunt.registerTask('test', [
'clean',
'gitbook',
'mochaTest',
]);
grunt.registerTask('default', 'test');
};