mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 17:07:43 +00:00
22 lines
563 B
JavaScript
22 lines
563 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', ['build', 'copy']);
|
|
|
|
};
|