sonarr-repo-only/gulp/stripBom.js

28 lines
559 B
JavaScript
Raw Normal View History

2014-08-28 21:40:18 +00:00
var gulp = require('gulp');
var paths = require('./paths.js');
2015-02-14 18:07:59 +00:00
var stripbom = require('gulp-stripbom');
2014-08-28 21:40:18 +00:00
2017-02-11 06:50:16 +00:00
var stripBom = function(dest) {
gulp.src([paths.src.scripts, paths.src.exclude.libs])
.pipe(stripbom({
showLog: false
}))
.pipe(gulp.dest(dest));
2014-08-28 21:40:18 +00:00
2017-02-11 06:50:16 +00:00
gulp.src(paths.src.less)
.pipe(stripbom({
showLog: false
}))
.pipe(gulp.dest(dest));
2017-02-11 06:50:16 +00:00
gulp.src(paths.src.templates)
.pipe(stripbom({
showLog: false
}))
.pipe(gulp.dest(dest));
2014-08-28 21:40:18 +00:00
};
2017-02-11 06:50:16 +00:00
gulp.task('stripBom', function() {
stripBom(paths.src.root);
2014-08-28 21:40:18 +00:00
});