Add ts
This commit is contained in:
parent
c16d4e1539
commit
aeb55dc490
|
@ -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!');
|
Loading…
Reference in New Issue