phaser/tasks/builddoc.js
Paul a7044a6cb6 PIXI-in-Docs fixups
- Removed hard-coded path (oops)
- Added grunt task (oops)
- Added EOLs
2014-11-03 11:30:33 -08:00

30 lines
654 B
JavaScript

/**
* 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 () {
var done = this.async();
grunt.util.spawn({
cmd: 'jsdoc',
args: ['-c', 'conf.json', '../../README.md'],
opts: {
cwd: 'docs/build'
}
}, function (error, result, code) {
if (error) {
grunt.fail.warn("" + result);
done(false);
} else {
done();
}
});
});
};