gulp-typescript-compiler
Typescript plugin for gulp
Last updated 8 years ago .
· Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-typescript-compiler 
SYNC missed versions from official npm registry.

gulp-typescript-compiler

Information

Packagegulp-typescript-compiler
Description Typescript plugin for gulp.
Based of gulp-typescript and typestring
Node Version >= 0.10

Usage

var gulp = require('gulp');
var tsc  = require('gulp-typescript-compiler');

gulp.task('default', function () {
  return gulp
    .src('app/**/*.ts')
    .pipe(tsc({
        module: '',
        target: 'ES3',
        sourcemap: false,
        logErrors: true
    }))
    .pipe(gulp.dest('dist'));
});

or just the entry point to your app

var gulp = require('gulp');
var tsc  = require('gulp-typescript-compiler');

gulp.task('default', function () {
  return gulp
    .src('app/main.ts', {read: false})
    .pipe(tsc({
        resolve: true
    }))
    .pipe(gulp.dest('dist'));
});

options.resolve

Type: boolean
Default: false
optional

Specify if the file(s) should resolve required files. By setting this to true the plugin will add to the buffered files all the other imported files.

options.module

Type: string
Default: 'commonjs'
optional

Specify module code generation: 'commonjs' or 'amd'.

options.target

Type: string
Default: 'ES5'
optional

Specify ECMAScript target version: 'ES3', or 'ES5'.

options.sourcemap

Type: boolean
Default: true
optional

Generates corresponding .map file.

logErrors

Type: boolean
Default: true
optional

Log any syntactic errors to console.

Current Tags

  • 1.0.1                                ...           latest (8 years ago)

5 Versions

  • 0.0.0                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.3                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
Maintainers (1)
Dependencies (3)
Dev Dependencies (2)

Copyright © npmmirror.com | 浙ICP备15033595号-63 |