Last active
November 8, 2021 04:35
-
-
Save somehybrid/f534c205220aead55a22ef7427495513 to your computer and use it in GitHub Desktop.
Automatically runs and compiles a typescript file (requirements: node.js, typescript)
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
:: For Windows | |
tsc %1 | |
node %1 | |
del %1 |
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
# for mac and linux | |
typescript() { | |
tsc "$1" | |
node "$1" | |
rm "$1.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment