2014-08-28 23:40:18 +02:00
|
|
|
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) {
|
2015-01-30 03:10:16 +01:00
|
|
|
gulp.src([paths.src.scripts, paths.src.exclude.libs])
|
2014-08-28 23:40:18 +02:00
|
|
|
.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);
|
|
|
|
});
|