2020-05-17 15:36:57 +02:00
|
|
|
const fs = require("fs").promises;
|
2020-04-23 18:04:44 +02:00
|
|
|
const getTheme = require("./theme");
|
|
|
|
|
2020-04-27 04:42:15 +02:00
|
|
|
const lightTheme = getTheme({
|
|
|
|
style: "light",
|
|
|
|
name: "GitHub Light",
|
|
|
|
});
|
2020-04-23 18:04:44 +02:00
|
|
|
|
2020-04-27 04:42:15 +02:00
|
|
|
const darkTheme = getTheme({
|
|
|
|
style: "dark",
|
|
|
|
name: "GitHub Dark",
|
|
|
|
});
|
2020-05-17 15:36:57 +02:00
|
|
|
|
2020-05-19 18:54:28 +02:00
|
|
|
fs.mkdir("./themes", { recursive: true }).then(() => {
|
2020-05-17 15:36:57 +02:00
|
|
|
fs.writeFile("./themes/light.json", JSON.stringify(lightTheme, null, 2))
|
|
|
|
fs.writeFile("./themes/dark.json", JSON.stringify(darkTheme, null, 2))
|
|
|
|
})
|