ogheorghies / tsc-do

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Shell 100.0%