mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(skins): add component authoring workflow
This commit is contained in:
1 parent
96c29394f3
commit
0c4cc344ef
25 files changed
+2013
-58
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { readFile, writeFile } from "node:fs/promises";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { zipSync } from "fflate";
|
||||
|
||||
const sourceDirectory = new URL("../../docs/examples/harbor-voice/", import.meta.url);
|
||||
const outputPath = fileURLToPath(new URL("../../docs/examples/harbor-voice.wskin", import.meta.url));
|
||||
const files = Object.fromEntries(await Promise.all(["manifest.json", "components.json", "skin.css"].map(async (name) => [
|
||||
name,
|
||||
await readFile(new URL(name, sourceDirectory)),
|
||||
])));
|
||||
|
||||
await writeFile(outputPath, zipSync(files, { level: 9 }));
|
||||
Reference in new issue
Block a user