mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
23 lines
621 B
JavaScript
23 lines
621 B
JavaScript
module.exports = function (grunt) {
|
|
|
|
var loadConfig = require('load-grunt-config');
|
|
|
|
loadConfig(grunt, {
|
|
configPath: __dirname + '/tasks/options',
|
|
config: {
|
|
package: grunt.file.readJSON('package.json'),
|
|
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', ['build', 'copy']);
|
|
|
|
};
|