Created
December 22, 2016 10:47
-
-
Save dseg/f6489e04b3479a9eef7623a6c3b0dc2d to your computer and use it in GitHub Desktop.
Compile and run a typescript file
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
function tscc { | |
local target | |
if [[ -n $2 ]]; then | |
target="$2" | |
else | |
target=es6 | |
fi | |
tsc -t "$target" "$1" -outFile /dev/stdout | node | |
} |
Author
dseg
commented
Dec 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment