File: readme.md

package info (click to toggle)
node-gulp-tsb 4.0.5%2B~cs7.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 496 kB
  • sloc: javascript: 928; makefile: 4
file content (34 lines) | stat: -rw-r--r-- 806 bytes parent folder | download
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
===============

[![Build Status](https://travis-ci.org/jrieken/gulp-tsb.svg?branch=master)](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.