1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
gulp-tsb
===============
[](https://travis-ci.org/jrieken/gulp-tsb)
## 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
```javascript
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.
|