From 8ef7581a9f446a3f66b1564a8e3ae668aa090f6e Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 11 Jul 2020 11:53:45 -0600 Subject: [PATCH] New language: Pug --- backend/src/langs.ts | 11 +++++++++++ scripts/docker-install-phase4.bash | 3 +++ 2 files changed, 14 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 9d72571..b912191 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -814,6 +814,17 @@ echo "Hello, world!\\n"; main :- write("Hello, world!"), nl. +`, + }, + pug: { + name: "Pug", + monacoLang: "pug", + main: "main.pug", + compile: "pug main.pug", + run: "prettier --no-config main.html", + template: `html + body + p Hello, world! `, }, python: { diff --git a/scripts/docker-install-phase4.bash b/scripts/docker-install-phase4.bash index 5103fec..15f78bc 100755 --- a/scripts/docker-install-phase4.bash +++ b/scripts/docker-install-phase4.bash @@ -55,6 +55,9 @@ cpanm -n Devel::REPL # PHP npm install -g intelephense +# Pug +npm install -g prettier pug-cli + # ReasonML npm install -g bs-platform