mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
a7044a6cb6
- Removed hard-coded path (oops) - Added grunt task (oops) - Added EOLs
24 lines
632 B
JavaScript
24 lines
632 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']);
|
|
|
|
grunt.registerTask('docs', ['pixidoc', 'builddoc']);
|
|
|
|
};
|