node-telegram-api/Gruntfile.js
Ali Movahedi 03bfae0028 feat(API): add previous API
copy types folder into module root path
2016-03-28 12:35:56 +04:30

43 lines
873 B
JavaScript

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