fix content build

This commit is contained in:
Alexander Popov 2023-08-06 02:52:05 +03:00
parent 63a014e477
commit 3b79364d20
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
4 changed files with 7 additions and 24 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.parcel-app/ .parcel-app/
ec*.exe ec*.exe
public/ public/
content/

View File

@ -1,18 +0,0 @@
#!/bin/sh
files=(
"pages/"
"manifest.webmanifest"
"index.html"
"*.css"
"*.png"
)
echo -n "Remove all build files in 'public'... "
for file in "${files[@]}"
do
rm -rf ./public/$file &> /dev/null
done
echo "Complete!"

View File

@ -4,14 +4,14 @@
"version": "1.0.0", "version": "1.0.0",
"description": "ololo", "description": "ololo",
"scripts": { "scripts": {
"serve": "npx parcel serve --dist-dir .parcel-app app/index.html pages/*.html", "serve": "npx parcel serve --dist-dir .parcel-app app/index.html pages/*.html content/*/*/*",
"serve-https": "npx parcel serve --https --dist-dir public app/index.html pages/*.html", "serve-https": "npx parcel serve --https --dist-dir public app/index.html pages/*.html content/*/*/*",
"build": "npm run clean; npm run build-pages; npm run build-app; npm run git-hash", "build": "npm run clean; npm run build-pages; npm run build-app; npm run git-hash",
"build-app": "npx parcel build --no-cache --no-source-maps --no-optimize --no-content-hash --dist-dir public app/index.html", "build-app": "npx parcel build --no-cache --no-source-maps --no-optimize --no-content-hash --dist-dir public app/index.html",
"build-pages": "npx parcel build --no-cache --no-source-maps --no-optimize --no-content-hash --dist-dir public/pages pages/*.html", "build-pages": "npx parcel build --no-cache --no-source-maps --no-optimize --no-content-hash --dist-dir public/ content/*/*/* pages/*.html",
"prettier": "npx prettier --write .", "prettier": "npx prettier --write .",
"git-hash": "./update_commit.sh", "git-hash": "./update_commit.sh",
"clean": "./clean_public.sh", "clean": "rm -rf ./public/ &> /dev/null",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "Alexander Popov <iiiypuk@fastmail.fm>", "author": "Alexander Popov <iiiypuk@fastmail.fm>",

View File

@ -14,10 +14,10 @@
<span class="text-nowrap">«Вторжение огромных тварей»</span> <span class="text-nowrap">«Вторжение огромных тварей»</span>
</h3> </h3>
<div class="d-none"> <div>
<img <img
class="img-fluid shadow rounded m-3" class="img-fluid shadow rounded m-3"
src="//content/images/2023/resident_evil_revelations_2_wallpaper_by_brendabirkin.jpg" /> src="/content/images/2023/resident_evil_revelations_2_wallpaper_by_brendabirkin.jpg" />
<p class="text-center text-muted"> <p class="text-center text-muted">
Изображение: Изображение:
<a <a