From afc831caab854a295dca04b64aed674509eaea48 Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Sat, 12 Jul 2025 17:04:45 -0500 Subject: [PATCH] Attempting to fix build so that the robots.txt and sitemap XML files are in the places I expect --- gulpfile.mjs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gulpfile.mjs b/gulpfile.mjs index 7942927..0318968 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -89,12 +89,22 @@ gulp.task("assets-img", function () { return gulp.src("./src/static/img/**/*", { encoding: false }).pipe(gulp.dest("./dist/static/img")); }); +// Task which will copy the assets from the static image directory to the dist directory +gulp.task("assets-xml", function () { + return gulp.src("./src/static/xml/**/*", { encoding: false }).pipe(gulp.dest("./dist/static/xml")); +}); + // Task which will copy the assets from the static CSS directory to the dist directory gulp.task("assets-css", function () { return gulp.src("./src/static/css/*").pipe(gulp.dest("./dist/static/css")); }); -gulp.task("assets", gulp.parallel("assets-js", "assets-img", "assets-css")); +// Task which will copy the assets from the static image directory to the dist directory +gulp.task("assets-robots", function () { + return gulp.src("./src/static/robots.txt", { encoding: false }).pipe(gulp.dest("./dist/static/robots.txt")); +}); + +gulp.task("assets", gulp.parallel("assets-js", "assets-img", "assets-xml", "assets-css", "assets-robots")); // The default task which runs at start of the gulpfile.js gulp.task("default", gulp.series("build-clean", "typescript", /*"pre-compile",*/ "views", "assets"), () => {