-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
37 lines (32 loc) · 997 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
module.exports = grunt => {
grunt.loadNpmTasks('grunt-mkdir');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadTasks('tasks');
grunt.initConfig({
'doxdox': {
'custom template': {
'inputs': ['test/fixtures/plugin.js'],
'output': 'temp/plugin.md',
'config': {
'title': 'Sample Title',
'description': 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',
'layout': 'test/fixtures/template.hbs',
'package': 'test/fixtures/package.json'
}
}
},
'mkdir': {
'all': {
'options': {
'create': ['temp']
}
}
},
'mochaTest': {
'doxdox': {
'src': ['test/specs/**/*.js']
}
}
});
grunt.registerTask('test', ['mkdir', 'doxdox', 'mochaTest']);
};