mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 17:58:23 +00:00
22 lines
574 B
JavaScript
22 lines
574 B
JavaScript
module.exports = function (grunt) {
|
|
|
|
var loadConfig = require('load-grunt-config');
|
|
|
|
loadConfig(grunt, {
|
|
configPath: __dirname + '/tasks/options',
|
|
config: {
|
|
release_dir: 'build',
|
|
compile_dir: 'dist',
|
|
banner: require('fs').readFileSync(__dirname + '/tasks/banner.txt', 'utf8')
|
|
}
|
|
});
|
|
|
|
grunt.loadTasks('tasks');
|
|
|
|
grunt.registerTask('default', ['build']);
|
|
|
|
grunt.registerTask('build', ['clean', 'jshint', 'concat', 'uglify']);
|
|
|
|
grunt.registerTask('dist', ['replace', 'build', 'copy']);
|
|
|
|
};
|