Created
December 11, 2019 19:08
-
-
Save enesusta/1e3615ae19a55517b3fb3f5e8afd4a91 to your computer and use it in GitHub Desktop.
Typescript Easy Executor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
run() { | |
tsc $1 --target es2015 && node $2 | |
} | |
file=$(ls -1v *.js | tail -1) | |
filets=$(ls -1v *.ts | tail -1) | |
run $filets $file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment