From 95fa0df9bbff05562e55a731ba91eab66ce44fb4 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 11 Jul 2020 13:20:23 -0600 Subject: [PATCH] New languages: CSS preprocessors --- backend/src/langs.ts | 30 ++++++++++++++++++++++++++++++ scripts/docker-install-phase4.bash | 6 ++++++ 2 files changed, 36 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index a305623..c700e06 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -631,6 +631,17 @@ PLEASE GIVE UP createEmpty: true, run: `SHELL=/usr/bin/ksh HOME="$PWD" ksh`, template: `echo "Hello, world!" +`, + }, + less: { + aliases: ["lessc"], + name: "Less", + monacoLang: "less", + main: "main.less", + run: "lessc main.less", + template: `body:before { + content: "Hello, world!"; +} `, }, llvm: { @@ -1034,6 +1045,15 @@ binding_irb.run(IRB.conf) template: `fn main() { println!("Hello, world!"); } +`, + }, + sass: { + name: "Sass", + monacoLang: "plaintext", + main: "main.sass", + run: "sass main.sass", + template: `body:before + content: "Hello, world!" `, }, scala: { @@ -1055,6 +1075,16 @@ binding_irb.run(IRB.conf) template: `(begin (display "Hello, world!") (newline)) +`, + }, + scss: { + name: "SCSS", + monacoLang: "scss", + main: "main.scss", + run: "sass main.scss", + template: `body:before { + content: "Hello, world!"; +} `, }, sh: { diff --git a/scripts/docker-install-phase4.bash b/scripts/docker-install-phase4.bash index 41dded7..e02aca1 100755 --- a/scripts/docker-install-phase4.bash +++ b/scripts/docker-install-phase4.bash @@ -52,6 +52,9 @@ pip3 install fortran-language-server # Julia julia -e 'using Pkg; Pkg.add("LanguageServer")' +# Less +npm install -g less + # Perl cpanm -n Devel::REPL @@ -70,6 +73,9 @@ gem install solargraph # Rust rustup component add rls rust-analysis rust-src +# Sass/SCSS +npm install -g sass + # Shakespeare pip3 install shakespearelang