From 46d026199b0a2e4c88cbdd6a41e21c6aaebc82e6 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 27 Feb 2019 00:23:56 +0100 Subject: [PATCH] Fixed exec calls to upgrade to gulp 4 Signed-off-by: Jim Martens --- gulpfile.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index b805cb5..e800aef 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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); });