Add favicon and logo generation scripts

- Implemented `generate-favicons.js` to create various favicon formats from a single SVG file.
- Created `update-data.js` to scan logo directories, generate PNG and JPG images from SVGs, and update the logos JSON data.
- Added a `.gitignore` file in the `flags_gen` directory to exclude all files except the `.gitignore` itself.
- Updated `logos.json` to ensure proper formatting.
This commit is contained in:
sHa
2025-06-17 16:15:15 +03:00
parent cff94aacb8
commit 8b2adef1af
8 changed files with 2078 additions and 35 deletions

View File

@@ -6,8 +6,8 @@
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public --host 0.0.0.0 --dev --single",
"scan-logos": "node scripts/scanLogos.js",
"generate-favicons": "node scripts/generateFavicons.js",
"update-data": "node scripts/update-data.js",
"generate-favicons": "node scripts/generate-favicons.js",
"generate-variants": "node scripts/generate-svg-variants.js",
"variants": "npm run generate-variants",
"pwa-cache-list": "node scripts/generate-pwa-cache-list.js"