Added htmlproofer task to gulp
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -135,6 +135,11 @@ gulp.task("build:jekyll:local", function () {
|
|||||||
return exec(shellCommand);
|
return exec(shellCommand);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task("htmlproofer", function() {
|
||||||
|
const shellCommand = "bundle exec htmlproofer _site/ --disable-external";
|
||||||
|
return exec(shellCommand);
|
||||||
|
});
|
||||||
|
|
||||||
// Deletes the entire _site directory.
|
// Deletes the entire _site directory.
|
||||||
gulp.task("clean:jekyll", function () {
|
gulp.task("clean:jekyll", function () {
|
||||||
return del(["_site"]);
|
return del(["_site"]);
|
||||||
@ -148,7 +153,8 @@ gulp.task("clean", gulp.series("clean:jekyll",
|
|||||||
// Builds site anew.
|
// Builds site anew.
|
||||||
gulp.task("build", gulp.series("clean",
|
gulp.task("build", gulp.series("clean",
|
||||||
gulp.parallel("build:scripts", "build:styles"),
|
gulp.parallel("build:scripts", "build:styles"),
|
||||||
"build:jekyll")
|
"build:jekyll",
|
||||||
|
"htmlproofer")
|
||||||
);
|
);
|
||||||
|
|
||||||
// Builds site anew using test config.
|
// Builds site anew using test config.
|
||||||
|
|||||||
Reference in New Issue
Block a user