Added htmlproofer task to gulp

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2019-02-27 15:11:03 +01:00
parent f2e5f7df83
commit f4fd62f9e0
1 changed files with 7 additions and 1 deletions

View File

@ -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.