@pkerschbaum/gulp-tsb
v4.1.0
Published
A gulp plugin for very fast TypeScript compilation. Fork of "gulp-tsb" (of Johannes Rieken <[email protected]>).
Downloads
4
Maintainers
Readme
gulp-tsb
Fork of jrieken/gulp-tsb
:
- Reset
master
branch torelease/4.0
(previousmaster
is available atrelease/3.0
) - Applied https://github.com/jrieken/gulp-tsb/pull/56
- Updated
typescript
to^4.1.3
(to support newjsx
related config options)
===============
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.