Remove duplicate license headers from compiled js files

This commit is contained in:
Fedor A. Fetisov 2017-11-28 17:14:46 +03:00
parent 7dd32257d1
commit 194b396788
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,7 @@ var fs = require('fs'),
concatPo = require('gulp-concat-po'), concatPo = require('gulp-concat-po'),
rename = require('gulp-rename'), rename = require('gulp-rename'),
eslint = require('gulp-eslint'), eslint = require('gulp-eslint'),
removeDuplicateHeaders = require('mibew-gulp-greh'),
mkdirp = require('mkdirp'); mkdirp = require('mkdirp');
// Set global configuration // Set global configuration
@ -237,6 +238,7 @@ gulp.task('js', function() {
gulp.src(config.jsPath + '/source/**/*.js') gulp.src(config.jsPath + '/source/**/*.js')
) )
.pipe(uglify({preserveComments: 'some'})) .pipe(uglify({preserveComments: 'some'}))
.pipe(removeDuplicateHeaders())
.pipe(gulp.dest(config.jsPath + '/compiled')); .pipe(gulp.dest(config.jsPath + '/compiled'));
}); });

View File

@ -26,7 +26,8 @@
"event-stream": "^3.3.1", "event-stream": "^3.3.1",
"eslint": "^2.11.0", "eslint": "^2.11.0",
"gulp-eslint": "^2.0.0", "gulp-eslint": "^2.0.0",
"mkdirp": "^0.5.1" "mkdirp": "^0.5.1",
"mibew-gulp-greh": "^0.0.1"
}, },
"engines": { "engines": {
"node": ">=0.12" "node": ">=0.12"