Attempting to fix build so that the robots.txt and sitemap XML files are in the places I expect
This commit is contained in:
parent
a53e679d8f
commit
afc831caab
1 changed files with 11 additions and 1 deletions
12
gulpfile.mjs
12
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"));
|
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
|
// Task which will copy the assets from the static CSS directory to the dist directory
|
||||||
gulp.task("assets-css", function () {
|
gulp.task("assets-css", function () {
|
||||||
return gulp.src("./src/static/css/*").pipe(gulp.dest("./dist/static/css"));
|
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
|
// The default task which runs at start of the gulpfile.js
|
||||||
gulp.task("default", gulp.series("build-clean", "typescript", /*"pre-compile",*/ "views", "assets"), () => {
|
gulp.task("default", gulp.series("build-clean", "typescript", /*"pre-compile",*/ "views", "assets"), () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue