mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-23 08:13:01 +00:00
Updated stripbom.
This commit is contained in:
parent
32fc68b9df
commit
4e6466e10c
4 changed files with 7 additions and 18 deletions
|
@ -5,14 +5,14 @@ var concat = require('gulp-concat');
|
||||||
var wrap = require("gulp-wrap");
|
var wrap = require("gulp-wrap");
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var streamqueue = require('streamqueue');
|
var streamqueue = require('streamqueue');
|
||||||
|
var stripbom = require('gulp-stripbom');
|
||||||
|
|
||||||
var paths = require('./paths.js');
|
var paths = require('./paths.js');
|
||||||
var bom = require('./pipelines/gulp-bom.js');
|
|
||||||
|
|
||||||
gulp.task('handlebars', function () {
|
gulp.task('handlebars', function () {
|
||||||
|
|
||||||
var coreStream = gulp.src([paths.src.templates, '!*/**/*Partial.*'])
|
var coreStream = gulp.src([paths.src.templates, '!*/**/*Partial.*'])
|
||||||
.pipe(bom())
|
.pipe(stripbom({ showLog: false }))
|
||||||
.pipe(handlebars())
|
.pipe(handlebars())
|
||||||
.pipe(declare({
|
.pipe(declare({
|
||||||
namespace: 'T',
|
namespace: 'T',
|
||||||
|
@ -29,7 +29,7 @@ gulp.task('handlebars', function () {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
var partialStream = gulp.src([paths.src.partials])
|
var partialStream = gulp.src([paths.src.partials])
|
||||||
.pipe(bom())
|
.pipe(stripbom({ showLog: false }))
|
||||||
.pipe(handlebars())
|
.pipe(handlebars())
|
||||||
.pipe(wrap('Handlebars.template(<%= contents %>)'))
|
.pipe(wrap('Handlebars.template(<%= contents %>)'))
|
||||||
.pipe(wrap('Handlebars.registerPartial(<%= processPartialName(file.relative) %>, <%= contents %>)', {}, {
|
.pipe(wrap('Handlebars.registerPartial(<%= processPartialName(file.relative) %>, <%= contents %>)', {}, {
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
var replace = require('gulp-replace');
|
|
||||||
module.exports = function() {
|
|
||||||
return replace(/^\uFEFF/, '');
|
|
||||||
};
|
|
|
@ -1,22 +1,14 @@
|
||||||
var gulp = require('gulp');
|
var gulp = require('gulp');
|
||||||
var paths = require('./paths.js');
|
var paths = require('./paths.js');
|
||||||
var bom = require('./pipelines/gulp-bom.js');
|
var stripbom = require('gulp-stripbom');
|
||||||
var gulpPrint = require('gulp-print');
|
|
||||||
|
|
||||||
|
|
||||||
var stripBom = function (dest) {
|
var stripBom = function (dest) {
|
||||||
gulp.src([paths.src.scripts, paths.src.exclude.libs])
|
gulp.src([paths.src.scripts, paths.src.exclude.libs])
|
||||||
.pipe(bom())
|
.pipe(stripbom({ showLog: false }))
|
||||||
.pipe(gulpPrint(function (filepath) {
|
|
||||||
return "booming: " + filepath;
|
|
||||||
}))
|
|
||||||
.pipe(gulp.dest(dest));
|
.pipe(gulp.dest(dest));
|
||||||
|
|
||||||
gulp.src(paths.src.templates)
|
gulp.src(paths.src.templates)
|
||||||
.pipe(bom())
|
.pipe(stripbom({ showLog: false }))
|
||||||
.pipe(gulpPrint(function (filepath) {
|
|
||||||
return "booming: " + filepath;
|
|
||||||
}))
|
|
||||||
.pipe(gulp.dest(dest));
|
.pipe(gulp.dest(dest));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
"gulp-less": "2.0.1",
|
"gulp-less": "2.0.1",
|
||||||
"gulp-print": "1.1.0",
|
"gulp-print": "1.1.0",
|
||||||
"gulp-replace": "0.5.2",
|
"gulp-replace": "0.5.2",
|
||||||
|
"gulp-stripbom": "1.0.4",
|
||||||
"gulp-run": "1.6.6",
|
"gulp-run": "1.6.6",
|
||||||
"gulp-webpack": "1.2.0",
|
"gulp-webpack": "1.2.0",
|
||||||
"gulp-wrap": "0.10.1",
|
"gulp-wrap": "0.10.1",
|
||||||
|
|
Loading…
Reference in a new issue