2014-11-03 19:05:00 +00:00
|
|
|
/**
|
|
|
|
* A quick stub-task for running generating the JSDocs.
|
|
|
|
* This should probably be migrated to use grunt-jsdoc@beta (for jsdoc 3.x) or similar.
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = function (grunt) {
|
|
|
|
|
|
|
|
grunt.registerTask('builddoc', 'Builds the project documentation', function () {
|
2014-11-03 19:21:00 +00:00
|
|
|
|
2014-11-03 19:05:00 +00:00
|
|
|
var done = this.async();
|
|
|
|
|
|
|
|
grunt.util.spawn({
|
|
|
|
cmd: 'jsdoc',
|
2014-11-25 00:20:56 +00:00
|
|
|
args: ['-c', './tasks/jsdoc-conf.json', './README.md'],
|
2014-11-03 19:05:00 +00:00
|
|
|
}, function (error, result, code) {
|
|
|
|
if (error) {
|
|
|
|
grunt.fail.warn("" + result);
|
|
|
|
done(false);
|
|
|
|
} else {
|
|
|
|
done();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2014-11-03 19:30:33 +00:00
|
|
|
};
|