From 68c463f64b9bc8afb81da43842c93fb4b60b7baa Mon Sep 17 00:00:00 2001 From: vagusX Date: Thu, 20 Aug 2020 19:56:32 +0800 Subject: [PATCH] chore: v1.1.1 --- config/extensions.js | 96 ++++++++++++++++++++++++++++++++++++ config/extensions.json | 48 ------------------ package.json | 2 +- scripts/update-extensions.js | 5 +- 4 files changed, 98 insertions(+), 53 deletions(-) create mode 100644 config/extensions.js delete mode 100644 config/extensions.json diff --git a/config/extensions.js b/config/extensions.js new file mode 100644 index 0000000..48cc622 --- /dev/null +++ b/config/extensions.js @@ -0,0 +1,96 @@ +module.exports = { + "extensions": { + "vscode-extensions": [ + { + "name": "html", + "version": "1.0.0" + }, + { + "name": "css", + "version": "1.0.0" + }, + { + "name": "json", + "version": "1.0.0" + }, + { + "name": "less", + "version": "1.0.0" + }, + { + "name": "scss", + "version": "1.0.0" + }, + { + "name": "markdown-basics", + "version": "1.0.0" + }, + { + "name": "go", + "version": "1.0.0" + }, + { + "name": "java", + "version": "1.0.0" + }, + { + "name": "python-basic", + "version": "1.0.0" + } + ], + "kaitian": [ + { + "name": "javascript", + "version": "1.0.0-patch.1" + }, + { + "name": "typescript-basics", + "version": "1.37.2-patch.1" + } + ], + "AONE-IDE": [ + "bat", + "clojure", + "coffeescript", + "cpp", + "csharp", + // "css", + "docker", + "fsharp", + // "go", + "groovy", + "handlebars", + "hlsl", + // "html", + "ini", + // "java", + "javascript", + // "json", + // "less", + "log", + "lua", + "make", + // "markdown-basics", + "objective-c", + "perl", + "php", + "powershell", + "pug", + // "r", 暂时不支持 + "razor", + "ruby", + "rust", + // "scss", + "shaderlab", + "shellscript", + "sql", + "swift", + // "typescript-basics", + "vb", + "xml", + "yaml", + ].map(name => ({ + name, + })), + } +} diff --git a/config/extensions.json b/config/extensions.json deleted file mode 100644 index 7976c78..0000000 --- a/config/extensions.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "extensions": { - "vscode-extensions": [ - { - "name": "html", - "version": "1.0.0" - }, - { - "name": "css", - "version": "1.0.0" - }, - { - "name": "json", - "version": "1.0.0" - }, - { - "name": "less", - "version": "1.0.0" - }, - { - "name": "scss", - "version": "1.0.0" - }, - { - "name": "markdown-basics", - "version": "1.0.0" - }, - { - "name": "go", - "version": "1.0.0" - }, - { - "name": "java", - "version": "1.0.0" - } - ], - "kaitian": [ - { - "name": "javascript", - "version": "1.0.0-patch.1" - }, - { - "name": "typescript-basics", - "version": "1.37.2-patch.1" - } - ] - } -} diff --git a/package.json b/package.json index 794c088..57cc0b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ali/kaitian-textmate-languages", - "version": "1.0.7", + "version": "1.1.1", "description": "", "main": "index.js", "scripts": { diff --git a/scripts/update-extensions.js b/scripts/update-extensions.js index 6c5fed0..a56e692 100644 --- a/scripts/update-extensions.js +++ b/scripts/update-extensions.js @@ -19,10 +19,7 @@ const extensionInstaller = new ExtensionInstaller({ }) // vscode extension 的 tar 包 oss 地址 -const { extensions } = require(path.resolve( - __dirname, - '../config/extensions.json' -)) +const { extensions } = require('../config/extensions') const downloadVscodeExtensions = async () => { console.log('清空 extensions 目录:%s', targetDir)