phaser/Gruntfile.js

28 lines
924 B
JavaScript
Raw Normal View History

/// <binding />
2013-10-23 12:15:56 +00:00
module.exports = function (grunt) {
var loadConfig = require('load-grunt-config');
2013-10-23 12:15:56 +00:00
loadConfig(grunt, {
configPath: __dirname + '/tasks/options',
config: {
release_dir: 'build',
compile_dir: 'dist',
2014-11-25 00:22:57 +00:00
docs_dir: 'docs',
banner: require('fs').readFileSync(__dirname + '/tasks/banner.txt', 'utf8')
2014-03-23 06:23:45 +00:00
}
});
grunt.loadTasks('tasks');
grunt.registerTask('default', ['build']);
2014-03-23 06:23:45 +00:00
2014-11-25 00:22:57 +00:00
grunt.registerTask('build', ['clean:dist', 'jshint', 'concat', 'uglify']);
2014-11-25 00:22:57 +00:00
grunt.registerTask('dist', ['replace:pixi', 'replace:p2', 'build', 'copy']);
2013-10-23 12:15:56 +00:00
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']);
2013-10-23 12:15:56 +00:00
};