jrieken / gulp-tsb

gulp plugin for incremental TypeScript building
MIT License
50 stars 19 forks source link

gulp-tsb

Build Status

Information

A gulp plugin for very fast TypeScript compilation. This plugin works by

Usage


    var tsb = require('gulp-tsb');

    // create and keep compiler
    var compilation = tsb.create({
        target: 'es5',
        module: 'commonjs',
        declaration: false
    });

    gulp.task('build', function() {
        return gulp.src('src/**/*.ts')
            .pipe(compilation()) // <- new compilation
            .pipe(gulp.dest(''));
    });

Options

The options are the same as the standard TypeScript compiler option.