From 73811cd4e950972b764c89b28dbb1b063e1097be Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 30 Dec 2022 02:11:30 +0100 Subject: [PATCH] feat: add more packages Adds: - shopify-theme-check - slint-lsp - smithy-language-server - solang - solargraph - solhint - solidity - solidity-ls - sorbet --- packages/shopify-theme-check/package.yaml | 17 ++++++++ packages/slint-lsp/package.yaml | 24 +++++++++++ packages/smithy-language-server/package.yaml | 18 ++++++++ packages/solang/package.yaml | 43 +++++++++++++++++++ packages/solargraph/package.yaml | 16 +++++++ packages/solhint/package.yaml | 16 +++++++ packages/solidity-ls/package.yaml | 16 +++++++ packages/solidity/package.yaml | 24 +++++++++++ packages/sorbet/package.yaml | 23 ++++++++++ schemas/components/sources/gem.json | 7 +++ .../components/sources/github/release.json | 22 ++++++---- schemas/enums/language.json | 1 + 12 files changed, 218 insertions(+), 9 deletions(-) create mode 100644 packages/shopify-theme-check/package.yaml create mode 100644 packages/slint-lsp/package.yaml create mode 100644 packages/smithy-language-server/package.yaml create mode 100644 packages/solang/package.yaml create mode 100644 packages/solargraph/package.yaml create mode 100644 packages/solhint/package.yaml create mode 100644 packages/solidity-ls/package.yaml create mode 100644 packages/solidity/package.yaml create mode 100644 packages/sorbet/package.yaml diff --git a/packages/shopify-theme-check/package.yaml b/packages/shopify-theme-check/package.yaml new file mode 100644 index 000000000..82b43c47d --- /dev/null +++ b/packages/shopify-theme-check/package.yaml @@ -0,0 +1,17 @@ +--- +name: shopify-theme-check +description: The Ultimate Shopify Theme Linter. +homepage: https://github.com/Shopify/theme-check +licenses: + - proprietary +languages: + - Liquid +categories: + - LSP + - Linter + +source: + id: pkg:gem/theme-check@1.12.1 + +bin: + theme-check-language-server: gem:theme-check-language-server diff --git a/packages/slint-lsp/package.yaml b/packages/slint-lsp/package.yaml new file mode 100644 index 000000000..c3feb27a5 --- /dev/null +++ b/packages/slint-lsp/package.yaml @@ -0,0 +1,24 @@ +--- +name: slint-lsp +description: A LSP Server that adds features like auto-complete and live preview of the .slint files to many editors. +homepage: https://slint-ui.com/ +licenses: + - proprietary + - GPL-3.0-or-later +languages: + - Slint +categories: + - LSP + +source: + id: pkg:github/slint-ui/slint@v0.3.3 + asset: + - target: linux_x64 + file: slint-lsp-linux.tar.gz + bin: slint-lsp/slint-lsp + - target: win_x64 + file: slint-lsp-windows.zip + bin: slint-lsp/slint-lsp.exe + +bin: + slint-lsp: "{{source.asset.bin}}" diff --git a/packages/smithy-language-server/package.yaml b/packages/smithy-language-server/package.yaml new file mode 100644 index 000000000..a42076874 --- /dev/null +++ b/packages/smithy-language-server/package.yaml @@ -0,0 +1,18 @@ +--- +name: smithy-language-server +description: A Language Server Protocol implementation for the Smithy IDL. +homepage: https://github.com/awslabs/smithy-language-server +licenses: + - Apache-2.0 +languages: + - Smithy +categories: + - LSP + +source: + id: pkg:github/awslabs/smithy-language-server@2a9ef9cc7cf2ad054c0320a395a19ec6e1a9f7bc + build: + run: ./gradlew build + +bin: + smithy-language-server: java-jar:build/libs/smithy-language-server-0.2.2.jar diff --git a/packages/solang/package.yaml b/packages/solang/package.yaml new file mode 100644 index 000000000..709ee9707 --- /dev/null +++ b/packages/solang/package.yaml @@ -0,0 +1,43 @@ +--- +name: solang +description: Solidity Compiler for Solana, Substrate, and ewasm. +homepage: https://solang.readthedocs.io/en/latest/ +licenses: + - Apache-2.0 +languages: + - Solidity +categories: + - LSP + - Compiler + +source: + id: pkg:github/hyperledger-labs/solang@v0.2.0 + asset: + - target: darwin_x64 + file: + - solang-mac-intel + - llvm13.0-mac-intel.tar.xz + bin: solang-mac-intel + - target: darwin_arm64 + file: + - solang-mac-arm + - llvm13.0-mac-arm.tar.xz + bin: solang-mac-arm + - target: linux_arm64 + file: + - solang-linux-arm64 + - llvm13.0-linux-arm64.tar.xz + bin: solang-linux-arm64 + - target: linux_x64 + file: + - solang-linux-x86-64 + - llvm13.0-linux-x86-64.tar.xz + bin: solang-linux-x86-64 + - target: win_x64 + file: + - solang.exe + - llvm13.0-win.zip + bin: solang.exe + +bin: + solang: "{{source.asset.bin}}" diff --git a/packages/solargraph/package.yaml b/packages/solargraph/package.yaml new file mode 100644 index 000000000..4df4460ac --- /dev/null +++ b/packages/solargraph/package.yaml @@ -0,0 +1,16 @@ +--- +name: solargraph +description: Solargraph is a Ruby gem that provides intellisense features through the language server protocol. +homepage: https://solargraph.org +licenses: + - MIT +languages: + - Ruby +categories: + - LSP + +source: + id: pkg:gem/solargraph@0.48.0 + +bin: + solargraph: gem:solargraph diff --git a/packages/solhint/package.yaml b/packages/solhint/package.yaml new file mode 100644 index 000000000..f85e2188c --- /dev/null +++ b/packages/solhint/package.yaml @@ -0,0 +1,16 @@ +--- +name: solhint +description: Solhint is a linting utility for Solidity code. +homepage: https://protofire.github.io/solhint/ +licenses: + - MIT +languages: + - Solidity +categories: + - Linter + +source: + id: pkg:npm/solhint@3.3.7 + +bin: + solhint: npm:solhint diff --git a/packages/solidity-ls/package.yaml b/packages/solidity-ls/package.yaml new file mode 100644 index 000000000..7c72133bc --- /dev/null +++ b/packages/solidity-ls/package.yaml @@ -0,0 +1,16 @@ +--- +name: solidity-ls +description: Solidity language server. +homepage: https://github.com/qiuxiang/solidity-ls +licenses: + - proprietary +languages: + - Solidity +categories: + - LSP + +source: + id: pkg:npm/solidity-ls@0.5.3 + +bin: + solidity-ls: npm:solidity-ls diff --git a/packages/solidity/package.yaml b/packages/solidity/package.yaml new file mode 100644 index 000000000..7570fefc6 --- /dev/null +++ b/packages/solidity/package.yaml @@ -0,0 +1,24 @@ +--- +name: solidity +description: Solidity, the Smart Contract Programming Language. +homepage: https://github.com/ethereum/solidity +licenses: + - GPL-3.0-or-later +languages: + - Solidity +categories: + - Compiler + - LSP + +source: + id: pkg:github/ethereum/solidity@v0.8.17 + asset: + - target: [darwin_x64, darwin_arm64] + file: solc-macos + - target: linux_x64 + file: solc-static-linux + - target: win_x64 + file: solc-windows.exe + +bin: + solc: "{{source.asset.file}}" diff --git a/packages/sorbet/package.yaml b/packages/sorbet/package.yaml new file mode 100644 index 000000000..6f545b819 --- /dev/null +++ b/packages/sorbet/package.yaml @@ -0,0 +1,23 @@ +--- +name: sorbet +description: Sorbet is a fast, powerful type checker designed for Ruby. +homepage: https://sorbet.org/ +licenses: + - Apache-2.0 +languages: + - Ruby +categories: + - LSP + +source: + id: pkg:gem/sorbet@0.5.10598 + supported_platforms: + - darwin_x64 + - darwin_arm64 + - linux_x64 + - linux_x86 + - linux_arm64 + - linux_arm + +bin: + srb: gem:srb diff --git a/schemas/components/sources/gem.json b/schemas/components/sources/gem.json index cee752d08..59630163a 100644 --- a/schemas/components/sources/gem.json +++ b/schemas/components/sources/gem.json @@ -15,6 +15,13 @@ "items": { "type": "string" } + }, + "supported_platforms": { + "type": "array", + "description": "List of platforms supported by the gem package.", + "items": { + "$ref": "/mason-org/mason-registry/schemas/enums/platform" + } } } } diff --git a/schemas/components/sources/github/release.json b/schemas/components/sources/github/release.json index 19602b8f9..16dc7ece6 100644 --- a/schemas/components/sources/github/release.json +++ b/schemas/components/sources/github/release.json @@ -5,10 +5,7 @@ "$defs": { "Asset": { "type": "object", - "required": [ - "target", - "file" - ], + "required": ["target", "file"], "additionalProperties": true, "properties": { "target": { @@ -25,16 +22,23 @@ ] }, "file": { - "type": "string" + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] } } } }, "additionalProperties": false, - "required": [ - "id", - "asset" - ], + "required": ["id", "asset"], "properties": { "id": { "type": "string", diff --git a/schemas/enums/language.json b/schemas/enums/language.json index 990fd9163..f15bee8f4 100644 --- a/schemas/enums/language.json +++ b/schemas/enums/language.json @@ -110,6 +110,7 @@ "Sh", "Shell", "Slint", + "Smithy", "Solidity", "Sphinx", "Stylelint",