add more assets

This commit is contained in:
Laurentiu Trofosila 2020-12-27 15:20:52 +01:00
parent 987669afec
commit 16da03271e
6 changed files with 21 additions and 28 deletions

View File

@ -4,7 +4,6 @@ const cleanCSS = require("gulp-clean-css");
const inlinesource = require("gulp-inline-source");
const path = require("path");
const del = require("del");
const rename = require("gulp-rename");
const html = () => {
return gulp
@ -26,22 +25,23 @@ const css = () => {
.pipe(gulp.dest("dist/styles"));
};
const purgeCss = () => {
const purge = () => {
return del(["dist/styles"]);
};
const favIcon = () => {
return gulp
.src("design/tinypng.png")
.pipe(rename("favicon.ico"))
.pipe(gulp.dest("dist"));
const public = () => {
return gulp.src("public/*").pipe(gulp.dest("dist"));
};
const dev = () => {
return gulp.watch(["src/**/*"], gulp.series(css, html, purgeCss, favIcon));
return gulp.watch(
["src/**/*"],
{ ignoreInitial: false },
gulp.series(css, html, purge, public)
);
};
exports.html = html;
exports.css = css;
exports.dev = dev;
exports.default = gulp.series(css, html, purgeCss, favIcon);
exports.default = gulp.series(css, html, purge, public);

18
package-lock.json generated
View File

@ -12,8 +12,7 @@
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-htmlmin": "^5.0.1",
"gulp-inline-source": "^4.0.0",
"gulp-rename": "^2.0.0"
"gulp-inline-source": "^4.0.0"
}
},
"node_modules/@nodelib/fs.scandir": {
@ -2028,15 +2027,6 @@
"node": ">=7.6"
}
},
"node_modules/gulp-rename": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-2.0.0.tgz",
"integrity": "sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==",
"dev": true,
"engines": {
"node": ">=4"
}
},
"node_modules/gulplog": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz",
@ -6958,12 +6948,6 @@
"through2": "~2.0.0"
}
},
"gulp-rename": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-2.0.0.tgz",
"integrity": "sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==",
"dev": true
},
"gulplog": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz",

View File

@ -20,7 +20,6 @@
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-htmlmin": "^5.0.1",
"gulp-inline-source": "^4.0.0",
"gulp-rename": "^2.0.0"
"gulp-inline-source": "^4.0.0"
}
}

View File

Before

Width:  |  Height:  |  Size: 125 B

After

Width:  |  Height:  |  Size: 125 B

4
public/robots.txt Normal file
View File

@ -0,0 +1,4 @@
User-agent: *
Disallow:
Sitemap: https://minwiz.com/sitemap.xml

6
public/sitemap.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://minwiz.com/</loc>
</url>
</urlset>