20
gulpfile.js
20
gulpfile.js
@ -6,7 +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 exec = require("child_process").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");
|
||||||
@ -110,26 +110,20 @@ gulp.task("clean:images", function () {
|
|||||||
|
|
||||||
// Runs jekyll build command.
|
// Runs jekyll build command.
|
||||||
gulp.task("build:jekyll", function () {
|
gulp.task("build:jekyll", function () {
|
||||||
let shellCommand = "bundle exec jekyll build --config _config.yml";
|
const shellCommand = "bundle exec jekyll build --config _config.yml";
|
||||||
|
return exec(shellCommand);
|
||||||
return exec(shellCommand)
|
|
||||||
.on("error", gutil.log);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Runs jekyll build command using test config.
|
// Runs jekyll build command using test config.
|
||||||
gulp.task("build:jekyll:test", function () {
|
gulp.task("build:jekyll:test", function () {
|
||||||
let shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml";
|
const shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml";
|
||||||
|
return exec(shellCommand);
|
||||||
return exec(shellCommand)
|
|
||||||
.on("error", gutil.log);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Runs jekyll build command using local config.
|
// Runs jekyll build command using local config.
|
||||||
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";
|
const shellCommand = "bundle exec jekyll build --config _config.yml,_config.test.yml,_config.dev.yml";
|
||||||
|
return exec(shellCommand);
|
||||||
return exec(shellCommand)
|
|
||||||
.on("error", gutil.log);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Deletes the entire _site directory.
|
// Deletes the entire _site directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user