Attempting to fix build so that the robots.txt and sitemap XML files are in the places I expect
All checks were successful
Build and deploy Main Bridgeman Accessible website to QA/Stagging (private Kubernetes cluster) / build (push) Successful in 8s
Build and deploy Main Bridgeman Accessible website to QA/Stagging (private Kubernetes cluster) / deploy (push) Has been skipped

This commit is contained in:
Alan Bridgeman 2025-07-12 17:04:45 -05:00
parent a53e679d8f
commit afc831caab

View file

@ -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"), () => {