mirror of
https://github.com/photonstorm/phaser
synced 2024-12-02 17:41:06 +00:00
7be4b8d7a9
Replace builddoc and exportdocjson grunt tasks with grunt-jsdoc. To avoid an error I added a fake comment to a @todo param in the p2.js file.
27 lines
924 B
JavaScript
27 lines
924 B
JavaScript
/// <binding />
|
|
module.exports = function (grunt) {
|
|
|
|
var loadConfig = require('load-grunt-config');
|
|
|
|
loadConfig(grunt, {
|
|
configPath: __dirname + '/tasks/options',
|
|
config: {
|
|
release_dir: 'build',
|
|
compile_dir: 'dist',
|
|
docs_dir: 'docs',
|
|
banner: require('fs').readFileSync(__dirname + '/tasks/banner.txt', 'utf8')
|
|
}
|
|
});
|
|
|
|
grunt.loadTasks('tasks');
|
|
|
|
grunt.registerTask('default', ['build']);
|
|
|
|
grunt.registerTask('build', ['clean:dist', 'jshint', 'concat', 'uglify']);
|
|
|
|
grunt.registerTask('dist', ['replace:pixi', 'replace:p2', 'build', 'copy']);
|
|
|
|
grunt.registerTask('docs', [ 'clean:docs', 'pixidoc', 'jsdoc:html', 'replace:docs', 'clean:out']);
|
|
|
|
grunt.registerTask('tsdocs', ['clean:out', 'pixidoc', 'gitclone:plugins', 'jsdoc:json', 'buildtsdoc:pixi', 'buildtsdoc:phaser', 'replace:phasertsdefheader', 'clean:out']);
|
|
};
|