mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 11:08:10 +00:00
fix json generator plugin
This commit is contained in:
@@ -1,70 +0,0 @@
|
|||||||
[
|
|
||||||
"default",
|
|
||||||
"3024-day",
|
|
||||||
"3024-night",
|
|
||||||
"abbott",
|
|
||||||
"abcdef",
|
|
||||||
"ambiance-mobile",
|
|
||||||
"ambiance",
|
|
||||||
"ayu-dark",
|
|
||||||
"ayu-mirage",
|
|
||||||
"base16-dark",
|
|
||||||
"base16-light",
|
|
||||||
"bespin",
|
|
||||||
"blackboard",
|
|
||||||
"cobalt",
|
|
||||||
"colorforth",
|
|
||||||
"darcula",
|
|
||||||
"darkbrewery",
|
|
||||||
"darkvision",
|
|
||||||
"dracula",
|
|
||||||
"duotone-dark",
|
|
||||||
"duotone-light",
|
|
||||||
"eclipse",
|
|
||||||
"elegant",
|
|
||||||
"erlang-dark",
|
|
||||||
"gruvbox-dark",
|
|
||||||
"hopscotch",
|
|
||||||
"icecoder",
|
|
||||||
"idea",
|
|
||||||
"isotope",
|
|
||||||
"juejin",
|
|
||||||
"lesser-dark",
|
|
||||||
"liquibyte",
|
|
||||||
"lucario",
|
|
||||||
"material-darker",
|
|
||||||
"material-ocean",
|
|
||||||
"material-palenight",
|
|
||||||
"material",
|
|
||||||
"mbo",
|
|
||||||
"mdn-like",
|
|
||||||
"midnight",
|
|
||||||
"monokai",
|
|
||||||
"moxer",
|
|
||||||
"neat",
|
|
||||||
"neo",
|
|
||||||
"night",
|
|
||||||
"nord",
|
|
||||||
"oceanic-next",
|
|
||||||
"panda-syntax",
|
|
||||||
"paraiso-dark",
|
|
||||||
"paraiso-light",
|
|
||||||
"pastel-on-dark",
|
|
||||||
"railscasts",
|
|
||||||
"rubyblue",
|
|
||||||
"seti",
|
|
||||||
"shadowfox",
|
|
||||||
"solarized",
|
|
||||||
"ssms",
|
|
||||||
"the-matrix",
|
|
||||||
"tomorrow-night-bright",
|
|
||||||
"tomorrow-night-eighties",
|
|
||||||
"ttcn",
|
|
||||||
"twilight",
|
|
||||||
"vibrant-ink",
|
|
||||||
"xq-dark",
|
|
||||||
"xq-light",
|
|
||||||
"yeti",
|
|
||||||
"yonce",
|
|
||||||
"zenburn"
|
|
||||||
]
|
|
||||||
@@ -68,8 +68,7 @@ export function generateAssetsPlugin(isDev = false) {
|
|||||||
await fs.copy("./themes/codeMirror/customThemes", editorThemesBuildDir);
|
await fs.copy("./themes/codeMirror/customThemes", editorThemesBuildDir);
|
||||||
|
|
||||||
const editorThemeFiles = fs.readdirSync(editorThemesBuildDir);
|
const editorThemeFiles = fs.readdirSync(editorThemesBuildDir);
|
||||||
await fs.outputFile(
|
await fs.outputFile(`${buildDir}/homebrew/codeMirror/editorThemes.json`,
|
||||||
"./themes/codeMirror/editorThemes.json",
|
|
||||||
JSON.stringify(["default", ...editorThemeFiles.map((f) => f.slice(0, -4))], null, 2),
|
JSON.stringify(["default", ...editorThemeFiles.map((f) => f.slice(0, -4))], null, 2),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user