From fd8249faa359edba8490754a72d2940ead46104e Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Thu, 11 Jul 2024 10:36:37 +0800 Subject: [PATCH] feat: add malva, markup_fmt and pretty_yaml (#19) --- info.json | 41 +++++++++++++++++++++++++++++++++++++++++ readInfoFile.ts | 5 ++++- 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/info.json b/info.json index 4f9fcaa..2d388b9 100644 --- a/info.json +++ b/info.json @@ -90,6 +90,47 @@ "ipynb" ], "configExcludes": [] + }, + { + "name": "g-plane/malva", + "selected": true, + "configKey": "malva", + "fileExtensions": [ + "css", + "scss", + "sass", + "less" + ], + "configExcludes": [ + "**/node_modules" + ] + }, + { + "name": "g-plane/markup_fmt", + "selected": true, + "configKey": "markup", + "fileExtensions": [ + "html", + "vue", + "svelte", + "astro", + "jinja", + "jinja2", + "twig", + "njk", + "vto" + ], + "configExcludes": [] + }, + { + "name": "g-plane/pretty_yaml", + "selected": true, + "configKey": "yaml", + "fileExtensions": [ + "yaml", + "yml" + ], + "configExcludes": [] } ] } diff --git a/readInfoFile.ts b/readInfoFile.ts index 15a4867..f28c6d9 100644 --- a/readInfoFile.ts +++ b/readInfoFile.ts @@ -27,7 +27,10 @@ export async function readInfoFile(): Promise> { async function getLatest(latest: Readonly[]) { const results = []; for (const plugin of latest) { - const info = await getLatestInfo("dprint", plugin.name); + const [username, pluginName] = plugin.name.split("/"); + const info = pluginName + ? await getLatestInfo(username, pluginName) + : await getLatestInfo("dprint", plugin.name); if (info != null) { results.push({ ...plugin,