save frontend icons as ts instead
This commit is contained in:
parent
7ea5efae93
commit
e8ea642260
|
@ -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
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue