phaser/Gruntfile.js

23 lines
563 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']);
2014-03-23 06:23:45 +00:00
grunt.registerTask('dist', ['build', 'copy']);
2013-10-23 12:15:56 +00:00
};