Skip to content

Instantly share code, notes, and snippets.

@chadaustin
Created December 3, 2015 22:02
Show Gist options
  • Select an option

  • Save chadaustin/495064765e6a94e9f58c to your computer and use it in GitHub Desktop.

Select an option

Save chadaustin/495064765e6a94e9f58c to your computer and use it in GitHub Desktop.
node_modules/typescript/bin/tsc --jsx 'react' -t 'ES6' -w | awk "
/message TS6032/ { print \"$YELLOW\" \$0 \"$NORMAL\"; next }
/message TS6042/ { print \"$GREEN\" \$0 \"$NORMAL\"; next }
/error TS[0-9]+/ { print \"${BRIGHT}${RED}\" \$0 \"$NORMAL\"; next }
{ print \$0 }
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment