mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
31 lines
735 B
JavaScript
31 lines
735 B
JavaScript
module.exports = function (grunt) {
|
|
grunt.loadNpmTasks('grunt-typescript');
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
typescript: {
|
|
base: {
|
|
src: ['Phaser/**/*.ts'],
|
|
dest: 'build/phaser.js',
|
|
options: {
|
|
target: 'ES5'
|
|
}
|
|
}
|
|
},
|
|
copy: {
|
|
main: {
|
|
files: [
|
|
{src: 'build/phaser.js', dest: 'Tests/phaser.js'}
|
|
]}
|
|
},
|
|
watch: {
|
|
files: '**/*.ts',
|
|
tasks: ['typescript', 'copy']
|
|
}
|
|
});
|
|
|
|
grunt.registerTask('default', ['watch']);
|
|
|
|
}
|