add Typescript support
This commit is contained in:
parent
ac5035b5c3
commit
4d9dff0b9a
2 changed files with 8 additions and 0 deletions
6
languages/typescript/Dockerfile
Normal file
6
languages/typescript/Dockerfile
Normal file
|
@ -0,0 +1,6 @@
|
|||
FROM node:alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
RUN yarn global add typescript
|
||||
|
||||
COPY run.sh /var/run/
|
2
languages/typescript/run.sh
Normal file
2
languages/typescript/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
cat > program.ts
|
||||
tsc --lib ESNext --target ES2019 --strict --skipLibCheck program.ts && cat program.js | node -p || true
|
Loading…
Reference in a new issue