1.0.4 • Published 9 years ago

gulp-typescript-ref v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

gulp-typescript-ref

Gulp plugin that filters out files not referenced from a provided array of files.

I was having problems with gulp-typescript's referencedFrom filter, so I made a simple Gulp plugin that uses a RegEx to approximate what it's supposed to do.

This plugin is NOT a replacement for gulp-typescript. It is mean to be used in conjunction with it.

Install with npm install gulp-typescript-ref --save-dev

Use it like this:

var gulp = require('gulp'),
    tsFilter = require('gulp-typescript-ref'),
    ts = require('gulp-typescript');

gulp.task('default', function() {
  gulp.src("**/*.ts")
    .pipe(tsFilter(['a.ts', 'b.ts']))
    .pipe(ts({ noExternalResolve: true })) // Or whatever options you want
    .pipe(gulp.dest("pub"));
});
1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago