Skip to content

Instantly share code, notes, and snippets.

@dylanscott
dylanscott / gulpfile.js
Created August 15, 2016 15:35
gulp tsc --watch
const gulp = require('gulp')
const gutil = require('gulp-util')
const path = require('path')
const spawn = require('child_process').spawn
const split = require('split')
const prettyHrtime = require('pretty-hrtime')
const TSC_LINE = /\d{1,2}:\d{1,2}:\d{1,2} [AP]M - (.+)/
const TSC_ERROR = /(.+?: )(.+)/
gulp.task('watch:typescript', function(cb) {