save frontend icons as ts instead

This commit is contained in:
Sam 2023-04-19 11:06:52 +02:00 committed by Gitea
parent 7ea5efae93
commit e8ea642260
3 changed files with 4 additions and 3 deletions

View file

@ -9,9 +9,9 @@ const keys = Object.keys(icons);
console.log(`Found ${keys.length} icons`);
const output = JSON.stringify(keys);
console.log(`Saving file as src/icons.json`);
console.log(`Saving file as src/icons.ts`);
writeFileSync("src/icons.json", output);
writeFileSync("src/icons.ts", `const icons = ${output};\nexport default icons;`);
const goCode1 = `// Generated code. DO NOT EDIT
package icons

File diff suppressed because one or more lines are too long

2
frontend/src/icons.ts Normal file

File diff suppressed because one or more lines are too long