2015-06-28 22:42:48 +00:00
|
|
|
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
|
|
|
babel: {
|
|
|
|
scripts: {
|
|
|
|
files: [{
|
|
|
|
expand: true,
|
|
|
|
cwd: 'lib',
|
|
|
|
src: '**/*.js',
|
|
|
|
dest: 'build/'
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
eslint: {
|
|
|
|
scripts: ['lib/**/*.js']
|
|
|
|
},
|
2015-07-03 17:08:24 +00:00
|
|
|
copy: {
|
2015-06-28 22:42:48 +00:00
|
|
|
classes: {
|
|
|
|
files: [{
|
|
|
|
expand: true,
|
|
|
|
cwd: 'build/types',
|
|
|
|
src: '*',
|
|
|
|
dest: 'types'
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
scripts: {
|
|
|
|
files: ['lib/**/*.js'],
|
|
|
|
tasks: ['babel']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-babel');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
2015-07-03 17:08:24 +00:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
2015-06-28 22:42:48 +00:00
|
|
|
grunt.loadNpmTasks('grunt-eslint');
|
|
|
|
|
2015-07-03 17:08:24 +00:00
|
|
|
grunt.registerTask('default', ['babel', 'copy', 'eslint']);
|
2015-06-28 22:42:48 +00:00
|
|
|
};
|