kotas / gulp-tsc

gulp.js plugin for compiling TypeScript files
69 stars 37 forks source link

There's no way to specify flags such as --emitDecoratorMetadata #51

Closed codependent closed 9 years ago

codependent commented 9 years ago

I am using gulp-tsc to compile TypeScript files in an Angular 2 application. According to Angular's doc the files must be generated with the following line:

tsc --watch -m commonjs -t es5 --emitDecoratorMetadata file.ts

My gulpfile.js file is as follows:

gulp.task('compile-ts', function(){
  return gulp.src(['resources/angular/**/*.ts'])
    .pipe(typescript({target : "ES5", module : "commonjs" }))
    .pipe(gulp.dest('./public/angular/'))
    .pipe(plugins.livereload());
});

It supports specifying ES5 and commonjs but there's no way to add the flag --emitDecoratorMetadata

kant2002 commented 9 years ago

I accept your pull request and publsh new version of package. Enjoy :smile:

codependent commented 9 years ago

Thanks! ;)