mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-27 00:41:37 +00:00
36fede7522
Just some organization here.
18 lines
567 B
TypeScript
18 lines
567 B
TypeScript
import * as fs from "fs";
|
|
import * as path from "path";
|
|
import app from "./styleTree/app";
|
|
import dark from "./themes/dark";
|
|
import light from "./themes/light";
|
|
import snakeCase from "./utils/snakeCase";
|
|
|
|
const themes = [dark, light];
|
|
for (let theme of themes) {
|
|
let styleTree = snakeCase(app(theme));
|
|
let styleTreeJSON = JSON.stringify(styleTree, null, 2);
|
|
let outPath = path.resolve(
|
|
`${__dirname}/../../crates/zed/assets/themes/${theme.name}.json`
|
|
);
|
|
fs.writeFileSync(outPath, styleTreeJSON);
|
|
console.log(`- ${outPath} created`);
|
|
}
|