2015-01-22 12:37:58 +00:00
|
|
|
/// <binding />
|
2013-10-23 12:15:56 +00:00
|
|
|
module.exports = function (grunt) {
|
2014-04-01 02:02:36 +00:00
|
|
|
|
2014-03-23 04:39:43 +00:00
|
|
|
var loadConfig = require('load-grunt-config');
|
2013-10-23 12:15:56 +00:00
|
|
|
|
2014-03-23 04:39:43 +00:00
|
|
|
loadConfig(grunt, {
|
|
|
|
configPath: __dirname + '/tasks/options',
|
|
|
|
config: {
|
|
|
|
release_dir: 'build',
|
2014-04-01 02:02:36 +00:00
|
|
|
compile_dir: 'dist',
|
2014-11-25 00:22:57 +00:00
|
|
|
docs_dir: 'docs',
|
2014-04-01 02:02:36 +00:00
|
|
|
banner: require('fs').readFileSync(__dirname + '/tasks/banner.txt', 'utf8')
|
2014-03-23 06:23:45 +00:00
|
|
|
}
|
2014-02-28 09:30:53 +00:00
|
|
|
});
|
|
|
|
|
2014-03-23 04:39:43 +00:00
|
|
|
grunt.loadTasks('tasks');
|
|
|
|
|
2014-03-17 16:10:04 +00:00
|
|
|
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-04-01 02:02:36 +00:00
|
|
|
|
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
|
|
|
|
2015-01-22 15:22:51 +00:00
|
|
|
grunt.registerTask('docs', [ 'clean:docs', 'pixidoc', 'jsdoc:html', 'replace:docs', 'clean:out']);
|
2014-11-03 19:30:33 +00:00
|
|
|
|
2015-01-22 15:22:51 +00:00
|
|
|
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
|
|
|
};
|