node-console-games/Gruntfile.js

35 lines
640 B
JavaScript
Raw Normal View History

2015-12-11 17:49:42 +00:00
module.exports = function(grunt) {
grunt.initConfig({
babel: {
scripts: {
files: [{
expand: true,
cwd: 'src',
src: '**/*.js',
dest: 'build/'
}]
}
},
copy: {
main: {
expand: true,
cwd: 'src',
src: 'locales/*',
dest: 'build'
}
},
2015-12-11 17:49:42 +00:00
watch: {
scripts: {
files: ['src/**/*.js'],
tasks: ['babel']
}
}
});
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
2015-12-11 17:49:42 +00:00
grunt.registerTask('default', ['babel']);
};