File: 04-gulp-if.diff

package info (click to toggle)
node-yarnpkg 1.13.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 93,036 kB
  • sloc: sh: 323; makefile: 19
file content (26 lines) | stat: -rw-r--r-- 850 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Patch gulp-if away.
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

--- a/gulpfile.js
+++ b/gulpfile.js
@@ -6,7 +6,6 @@ const newer = require('gulp-newer');
 const babel = require('gulp-babel');
 const sourcemaps = require('gulp-sourcemaps');
 const log = require('fancy-log');
-const gulpif = require('gulp-if');
 const gulp = require('gulp');
 const path = require('path');
 const fs = require('fs');
@@ -24,9 +23,9 @@ const build = (lib, opts) =>
         },
       }))
       .pipe(newer(lib))
-      .pipe(gulpif(argv.sourcemaps, sourcemaps.init()))
+      .pipe(sourcemaps.init())
       .pipe(babel(opts))
-      .pipe(gulpif(argv.sourcemaps, sourcemaps.write('.', {sourceRoot: '../src'})))
+      .pipe(sourcemaps.write('.', {sourceRoot: '../src'}))
       .pipe(gulp.dest(lib));
 
 gulp.task('build', () =>