Fixed exec calls to upgrade to gulp 4

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2019-02-27 00:23:56 +01:00
parent aba9455a38
commit 46d026199b
1 changed files with 4 additions and 6 deletions

View File

@ -6,6 +6,7 @@ const browserSync = require("browser-sync").create();
const cleancss = require("gulp-clean-css");
const concat = require("gulp-concat");
const del = require("del");
const exec = require("gulp-exec");
const gulp = require("gulp");
const gutil = require("gulp-util");
const imagemin = require("gulp-imagemin");
@ -111,8 +112,7 @@ gulp.task("clean:images", function () {
gulp.task("build:jekyll", function () {
let shellCommand = "bundle exec jekyll build --config _config.yml";
return gulp.src("")
.pipe(run(shellCommand))
return exec(shellCommand)
.on("error", gutil.log);
});
@ -120,8 +120,7 @@ gulp.task("build:jekyll", function () {
gulp.task("build:jekyll:test", function () {
let shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml";
return gulp.src("")
.pipe(run(shellCommand))
return exec(shellCommand)
.on("error", gutil.log);
});
@ -129,8 +128,7 @@ gulp.task("build:jekyll:test", function () {
gulp.task("build:jekyll:local", function () {
let shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml,_config.dev.yml";
return gulp.src("")
.pipe(run(shellCommand))
return exec(shellCommand)
.on("error", gutil.log);
});