phaser/Gruntfile.js

25 lines
632 B
JavaScript
Raw Normal View History

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',
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
grunt.registerTask('build', ['clean', 'jshint', 'concat', 'uglify']);
grunt.registerTask('dist', ['replace', 'build', 'copy']);
2013-10-23 12:15:56 +00:00
grunt.registerTask('docs', ['pixidoc', 'builddoc']);
2013-10-23 12:15:56 +00:00
};