feat: add new logo and favicon generation #19

Merged
xoxys merged 3 commits from add-favicon into main 2021-08-31 08:34:30 +00:00
Showing only changes of commit 7fd9d08bce - Show all commits

View File

@ -12,6 +12,15 @@ function noop() {
return through.obj();
}
gulp.task("prepare", function (done) {
if (!fs.existsSync(BUILD)) {
fs.mkdirSync(BUILD, {
recursive: true,
});
}
done();
});
gulp.task("favicon-generate", function (done) {
realFavicon.generateFavicon(
{
@ -96,9 +105,12 @@ gulp.task("favicon-check-update", function (done) {
});
gulp.task("clean", function () {
return del(["static/favicon/", "resources"]);
return del([BUILD, "static/favicon/", "resources"]);
});
/* Task series */
gulp.task("favicon", gulp.series("favicon-generate", "favicon-check-update"));
gulp.task(
"favicon",
gulp.series("clean", "prepare", "favicon-generate", "favicon-check-update")
);