mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
34 lines
612 B
JavaScript
34 lines
612 B
JavaScript
![]() |
var mocha = require('mocha');
|
||
|
|
||
|
module.exports = function (grunt) {
|
||
|
|
||
|
/* add the grunt-mocha-test task */
|
||
|
grunt.loadNpmTasks('grunt-mocha-test');
|
||
|
|
||
|
/* grunt configuration */
|
||
|
grunt.initConfig({
|
||
|
mochaTest: {
|
||
|
test: {
|
||
|
options: {
|
||
|
reporter: 'spec'
|
||
|
},
|
||
|
src: ['tests/*.js']
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
/* test task */
|
||
|
grunt.registerTask('test', 'mochaTest');
|
||
|
|
||
|
/* documentation generation task */
|
||
|
grunt.registerTask('documentation', function () {
|
||
|
var markdox = require('markdox');
|
||
|
var done = this.async();
|
||
|
|
||
|
var files = [
|
||
|
'./index.js'
|
||
|
];
|
||
|
|
||
|
markdox.process(files, 'documentation.md', done);
|
||
|
});
|
||
|
};
|