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/'
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
},
|
2019-05-09 20:04:06 +00:00
|
|
|
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');
|
2019-05-09 20:04:06 +00:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
2015-12-11 17:49:42 +00:00
|
|
|
|
|
|
|
grunt.registerTask('default', ['babel']);
|
|
|
|
};
|