mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
26 lines
658 B
JavaScript
26 lines
658 B
JavaScript
var gulp = require('gulp');
|
|
var paths = require('./paths.js');
|
|
var bom = require('./pipelines/gulp-bom.js');
|
|
var gulpPrint = require('gulp-print');
|
|
|
|
|
|
var stripBom = function (dest) {
|
|
gulp.src([paths.src.scripts, paths.src.exclude.libs])
|
|
.pipe(bom())
|
|
.pipe(gulpPrint(function (filepath) {
|
|
return "booming: " + filepath;
|
|
}))
|
|
.pipe(gulp.dest(dest));
|
|
|
|
gulp.src(paths.src.templates)
|
|
.pipe(bom())
|
|
.pipe(gulpPrint(function (filepath) {
|
|
return "booming: " + filepath;
|
|
}))
|
|
.pipe(gulp.dest(dest));
|
|
};
|
|
|
|
gulp.task('stripBom', function () {
|
|
stripBom(paths.src.root);
|
|
});
|