build: logging character updated

This commit is contained in:
ful1e5 2021-10-24 15:18:10 +05:30
parent 285a5ee74d
commit ca459189df
3 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,6 @@ export const template = `
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Render Template</title>
</head>
<body>
<div id="container">
<svginjection>

View file

@ -8,7 +8,7 @@ const svgDir = path.resolve(root, "svg");
const main = async () => {
for (const { themeName, color } of config) {
console.log("=>", themeName);
console.log("Generating bitmaps for", themeName);
const bitmapsDir = path.resolve(root, "bitmaps", themeName);
const svg = new SVGHandler.SvgDirectoryParser(svgDir);
@ -17,14 +17,14 @@ const main = async () => {
const browser = await png.getBrowser();
for (let { key, content } of svg.getStatic()) {
console.log(" -> Saving", key, "...");
console.log(" ==> Saving", key, "...");
content = SVGHandler.colorSvg(content, color);
await png.generateStatic(browser, content, key);
}
for (let { key, content } of svg.getAnimated()) {
console.log(" -> Saving", key, "...");
console.log(" ==> Saving", key, "...");
content = SVGHandler.colorSvg(content, color);
await png.generateAnimated(browser, content, key);