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