mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
ts support
This commit is contained in:
parent
460e393772
commit
8833d4f488
6 changed files with 16 additions and 2 deletions
|
@ -90,6 +90,9 @@ case "$lang" in
|
|||
"bash")
|
||||
bin=bash
|
||||
;;
|
||||
"typescript" | "ts")
|
||||
bin=typescript
|
||||
;;
|
||||
*)
|
||||
echo "invalid language"
|
||||
exit
|
||||
|
|
6
lxc/executors/typescript
Executable file
6
lxc/executors/typescript
Executable file
|
@ -0,0 +1,6 @@
|
|||
cd /tmp/$2
|
||||
mv code.code interim.ts
|
||||
timeout -s KILL 10 tsc interim.ts
|
||||
rm interim.ts
|
||||
mv interim.js code.code
|
||||
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 nodejs code.code"
|
Loading…
Add table
Add a link
Reference in a new issue