Fixed exec calls to upgrade to gulp 4
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
10
gulpfile.js
10
gulpfile.js
@ -6,6 +6,7 @@ const browserSync = require("browser-sync").create();
|
|||||||
const cleancss = require("gulp-clean-css");
|
const cleancss = require("gulp-clean-css");
|
||||||
const concat = require("gulp-concat");
|
const concat = require("gulp-concat");
|
||||||
const del = require("del");
|
const del = require("del");
|
||||||
|
const exec = require("gulp-exec");
|
||||||
const gulp = require("gulp");
|
const gulp = require("gulp");
|
||||||
const gutil = require("gulp-util");
|
const gutil = require("gulp-util");
|
||||||
const imagemin = require("gulp-imagemin");
|
const imagemin = require("gulp-imagemin");
|
||||||
@ -111,8 +112,7 @@ gulp.task("clean:images", function () {
|
|||||||
gulp.task("build:jekyll", function () {
|
gulp.task("build:jekyll", function () {
|
||||||
let shellCommand = "bundle exec jekyll build --config _config.yml";
|
let shellCommand = "bundle exec jekyll build --config _config.yml";
|
||||||
|
|
||||||
return gulp.src("")
|
return exec(shellCommand)
|
||||||
.pipe(run(shellCommand))
|
|
||||||
.on("error", gutil.log);
|
.on("error", gutil.log);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -120,8 +120,7 @@ gulp.task("build:jekyll", function () {
|
|||||||
gulp.task("build:jekyll:test", function () {
|
gulp.task("build:jekyll:test", function () {
|
||||||
let shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml";
|
let shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml";
|
||||||
|
|
||||||
return gulp.src("")
|
return exec(shellCommand)
|
||||||
.pipe(run(shellCommand))
|
|
||||||
.on("error", gutil.log);
|
.on("error", gutil.log);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -129,8 +128,7 @@ gulp.task("build:jekyll:test", function () {
|
|||||||
gulp.task("build:jekyll:local", function () {
|
gulp.task("build:jekyll:local", function () {
|
||||||
let shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml,_config.dev.yml";
|
let shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml,_config.dev.yml";
|
||||||
|
|
||||||
return gulp.src("")
|
return exec(shellCommand)
|
||||||
.pipe(run(shellCommand))
|
|
||||||
.on("error", gutil.log);
|
.on("error", gutil.log);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user