node-telegram-api/Gruntfile.js

43 lines
873 B
JavaScript
Raw Normal View History

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