Skip to content

Instantly share code, notes, and snippets.

@GongT
Last active June 10, 2017 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GongT/f8b65c7db0eb081a8c741f59b552f984 to your computer and use it in GitHub Desktop.
Save GongT/f8b65c7db0eb081a8c741f59b552f984 to your computer and use it in GitHub Desktop.
run `tsc -w`, clear terminal before re-compile. save to .bashrc file
# : 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