ivogabe / gulp-typescript

A TypeScript compiler for gulp with incremental compilation support.
MIT License
839 stars 129 forks source link

How to pass the reporter? #624

Closed pronebird closed 5 years ago

pronebird commented 5 years ago

Hi,

How can I pass the reporter when using ts.createProject? I can't find any documentation for that.

const tsProject = ts.createProject('tsconfig.json');
const reporter = ts.reporter.longReporter();

gulp.task('scripts', () => {
  return tsProject.src()
    .pipe(tsProject())
    .pipe(gulp.dest(TS_OUTPUT));
});
pronebird commented 5 years ago

Realised that tsProject() accepts the reporter