mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Fixed: Restored robots.txt
(cherry picked from commit 37501094d7256e4dbe13de33b392933f6d475553)
This commit is contained in:
parent
118be1fdf4
commit
9370e496dd
5 changed files with 14 additions and 1 deletions
|
@ -10,7 +10,8 @@ gulp.task('build',
|
||||||
'webpack',
|
'webpack',
|
||||||
'copyHtml',
|
'copyHtml',
|
||||||
'copyFonts',
|
'copyFonts',
|
||||||
'copyImages'
|
'copyImages',
|
||||||
|
'copyRobots'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -32,3 +32,11 @@ gulp.task('copyImages', () => {
|
||||||
.pipe(gulp.dest(paths.dest.root))
|
.pipe(gulp.dest(paths.dest.root))
|
||||||
.pipe(livereload());
|
.pipe(livereload());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('copyRobots', () => {
|
||||||
|
return gulp.src(paths.src.robots, { base: paths.src.root })
|
||||||
|
.pipe(cache('copyRobots'))
|
||||||
|
.pipe(print())
|
||||||
|
.pipe(gulp.dest(paths.dest.root))
|
||||||
|
.pipe(livereload());
|
||||||
|
});
|
||||||
|
|
|
@ -8,6 +8,7 @@ const paths = {
|
||||||
content: `${root}/Content/`,
|
content: `${root}/Content/`,
|
||||||
fonts: `${root}/Content/Fonts/`,
|
fonts: `${root}/Content/Fonts/`,
|
||||||
images: `${root}/Content/Images/`,
|
images: `${root}/Content/Images/`,
|
||||||
|
robots: `${root}/Content/robots.txt`,
|
||||||
exclude: {
|
exclude: {
|
||||||
libs: `!${root}/JsLibraries/**`
|
libs: `!${root}/JsLibraries/**`
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ function watch() {
|
||||||
gulpWatch(paths.src.html, gulp.series('copyHtml'));
|
gulpWatch(paths.src.html, gulp.series('copyHtml'));
|
||||||
gulpWatch(`${paths.src.fonts}**/*.*`, gulp.series('copyFonts'));
|
gulpWatch(`${paths.src.fonts}**/*.*`, gulp.series('copyFonts'));
|
||||||
gulpWatch(`${paths.src.images}**/*.*`, gulp.series('copyImages'));
|
gulpWatch(`${paths.src.images}**/*.*`, gulp.series('copyImages'));
|
||||||
|
gulpWatch(paths.src.robots, gulp.series('copyRobots'));
|
||||||
}
|
}
|
||||||
|
|
||||||
gulp.task('watch', gulp.series('build', watch));
|
gulp.task('watch', gulp.series('build', watch));
|
||||||
|
|
2
frontend/src/Content/robots.txt
Normal file
2
frontend/src/Content/robots.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
Loading…
Add table
Add a link
Reference in a new issue