Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 605 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 605 Bytes

Take action when tsc compilation succeeds, fails, or starts.

Usage:

tsc --watch | tsc-do {on-success} {on-error} {on-start}

Examples:

tsc --watch | tsc-do 'say OK' 'say Failed' 'say Building'
tsc --watch | tsc-do ./on-success.sh ./on-error.sh ./on-start.sh
tsc --watch | tsc-do

To get back the functionality of tsc before microsoft/TypeScript#20389, so that the screen is not cleared before each compilation, use:

tsc --watch | tsc-do

To clear the screen before each compilation, use:

tsc --watch | tsc-do true true clear