node-telegram-api/Gruntfile.js

30 lines
565 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
},
watch: {
scripts: {
files: ['src/**/*.js'],
2015-06-28 22:42:48 +00:00
tasks: ['babel']
}
}
});
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-eslint');
grunt.registerTask('default', ['babel', 'eslint']);
2015-06-28 22:42:48 +00:00
};