From f4fd62f9e0d02e79fa514a3f42b691875a07492b Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 27 Feb 2019 15:11:03 +0100 Subject: [PATCH] Added htmlproofer task to gulp Signed-off-by: Jim Martens --- gulpfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index aa2bc04..5d8b503 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -135,6 +135,11 @@ gulp.task("build:jekyll:local", function () { return exec(shellCommand); }); +gulp.task("htmlproofer", function() { + const shellCommand = "bundle exec htmlproofer _site/ --disable-external"; + return exec(shellCommand); +}); + // Deletes the entire _site directory. gulp.task("clean:jekyll", function () { return del(["_site"]); @@ -148,7 +153,8 @@ gulp.task("clean", gulp.series("clean:jekyll", // Builds site anew. gulp.task("build", gulp.series("clean", gulp.parallel("build:scripts", "build:styles"), - "build:jekyll") + "build:jekyll", + "htmlproofer") ); // Builds site anew using test config.