diff --git a/langs/typescript.yaml b/langs/typescript.yaml new file mode 100644 index 0000000..61f16db --- /dev/null +++ b/langs/typescript.yaml @@ -0,0 +1,34 @@ +id: "typescript" +aliases: + - "ts" + - "tsnode" + - "tsc" +name: "TypeScript" +monacoLang: typescript + +install: + riju: + - prettier + npm: + - typescript + - ts-node + +repl: | + ts-node + +main: "main.ts" +template: | + console.log("Hello, world!"); + +run: | + ts-node -i -e "$(< main.ts)" + +scope: + code: | + let x = 123 * 234; + +format: + run: | + prettier --no-config --stdin-filepath=format.ts + input: | + console.log('Hello, world!'); \ No newline at end of file