Last active
June 10, 2017 22:45
-
-
Save GongT/f8b65c7db0eb081a8c741f59b552f984 to your computer and use it in GitHub Desktop.
run `tsc -w`, clear terminal before re-compile. save to .bashrc 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
# : https://gist.github.com/GongT/f8b65c7db0eb081a8c741f59b552f984 | |
function tscp { | |
echo -en "\ec\0typescript compiling (source: $1)...\r" | |
tsc -w -p "$1" | sed 's/^.*File change detected/\x1Bc\0/g' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment