chore: don't copy build/types folder to the project's root; get rid of redundant dependency

This commit is contained in:
Laurynas Karvelis 2018-12-24 11:35:51 +02:00
parent 5b7c636aed
commit 56a46149ca
2 changed files with 1 additions and 14 deletions

View File

@ -13,16 +13,6 @@ module.exports = function(grunt) {
eslint: { eslint: {
scripts: ['src/**/*.js'] scripts: ['src/**/*.js']
}, },
copy: {
classes: {
files: [{
expand: true,
cwd: 'build/types',
src: '*',
dest: 'types'
}]
}
},
watch: { watch: {
scripts: { scripts: {
files: ['src/**/*.js'], files: ['src/**/*.js'],
@ -35,8 +25,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-babel'); grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-eslint'); grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('default', ['clean', 'babel', 'copy', 'eslint']); grunt.registerTask('default', ['clean', 'babel', 'eslint']);
}; };

View File

@ -22,7 +22,6 @@
"url": "https://github.com/mdibaiee/node-telegram-api/issues" "url": "https://github.com/mdibaiee/node-telegram-api/issues"
}, },
"files": [ "files": [
"types",
"build" "build"
], ],
"directories": { "directories": {
@ -46,7 +45,6 @@
"grunt": "^0.4.5", "grunt": "^0.4.5",
"grunt-babel": "^6.0.0", "grunt-babel": "^6.0.0",
"grunt-contrib-clean": "^1.0.0", "grunt-contrib-clean": "^1.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-watch": "^1.0.0", "grunt-contrib-watch": "^1.0.0",
"grunt-copy": "^0.1.0", "grunt-copy": "^0.1.0",
"grunt-eslint": "18.0.0" "grunt-eslint": "18.0.0"