From a8d06caae99408f187a78dec2d04bef5826c3655 Mon Sep 17 00:00:00 2001 From: Vladislav Botvin Date: Fri, 5 Apr 2024 12:14:10 +0300 Subject: [PATCH] Add Gleam support (#1122) --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index be56bca..5ca74f6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "code-runner", "displayName": "Code Runner", - "description": "Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Obj-C, Rust, Racket, Scheme, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim, D, Lisp, Kit, V, SCSS, Sass, CUDA, Less, Fortran, Ring, Standard ML, Zig, Mojo, Erlang, SPWN, Pickle", + "description": "Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Obj-C, Rust, Racket, Scheme, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim, D, Lisp, Kit, V, SCSS, Sass, CUDA, Less, Fortran, Ring, Standard ML, Zig, Mojo, Erlang, SPWN, Pickle, Gleam", "version": "0.12.1", "featureFlags": { "usingNewPythonInterpreterPathApi": true, @@ -187,7 +187,8 @@ "mojo": "mojo run", "erlang": "escript", "spwn": "spwn build", - "pkl": "cd $dir && pkl eval -f yaml $fileName -o $fileNameWithoutExt.yaml" + "pkl": "cd $dir && pkl eval -f yaml $fileName -o $fileNameWithoutExt.yaml", + "gleam": "gleam run -m $fileNameWithoutExt" }, "description": "Set the executor of each language.", "scope": "resource" @@ -229,7 +230,8 @@ ".mojo": "mojo run", ".erl": "escript", ".spwn": "spwn build", - ".pkl": "cd $dir && pkl eval -f yaml $fileName -o $fileNameWithoutExt.yaml" + ".pkl": "cd $dir && pkl eval -f yaml $fileName -o $fileNameWithoutExt.yaml", + ".gleam": "gleam run -m $fileNameWithoutExt" }, "description": "Set the executor of each file extension.", "scope": "resource"