包详细信息

gulp-tsb

jrieken1.9kMIT不推荐使用4.0.6

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

A gulp plugin for very fast TypeScript compilation.

gulpplugin, typescript, javascript, incremental

自述文件

gulp-tsb

Build Status

Information

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

  • keeping a compiler alive to improve speed (at the cost of memory)
  • always recompiling the smallest set of files possible

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.