forked from mirrors/pronouns.cc
save frontend icons as ts instead
This commit is contained in:
parent
7ea5efae93
commit
e8ea642260
3 changed files with 4 additions and 3 deletions
|
@ -9,9 +9,9 @@ const keys = Object.keys(icons);
|
||||||
|
|
||||||
console.log(`Found ${keys.length} icons`);
|
console.log(`Found ${keys.length} icons`);
|
||||||
const output = JSON.stringify(keys);
|
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
|
const goCode1 = `// Generated code. DO NOT EDIT
|
||||||
package icons
|
package icons
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
frontend/src/icons.ts
Normal file
2
frontend/src/icons.ts
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue