Socket
Socket
Sign inDemoInstall

gulp-ts

Package Overview
Dependencies
90
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-ts

TypeScript compiler Gulp plugin


Version published
Maintainers
1
Install size
8.15 MB
Created

Readme

Source

gulp-ts

TypeScript compiler plugin for Gulp.

Note: This is in heavy development.

First install gulp-ts

npm install --save-dev gulp-ts

Usage:

var gulp = requre('gulp');
var ts = require('gulp-ts');

// ...
gulp.task('typescript', function() {
  gulp.src('source.ts')
    .pipe(ts())
    .pipe(gulp.dest('out'));
});

Supports the following options.

 .pipe(ts({
  // Generates corresponding .map file.
  sourceMap : false,

  // Generates corresponding .d.ts file.
  declaration : false,

  // Do not emit comments to output.
  removeComments : false,

  // Warn on expressions and declarations with an implied 'any' type.
  noImplicitAny : false,

  // Skip resolution and preprocessing.
  noResolve : false,

  // Specify module code generation: 'commonjs' or 'amd'  
  module : 'amd',

  // Specify ECMAScript target version: 'ES3' (default), or 'ES5'
  target : 'ES3',

  // Concatenate and emit output to single file.
  out : '', // output file name

  // Specifies the location where debugger should locate TypeScript files instead of source locations.
  sourceRoot : '',

  // Specifies the location where debugger should locate map files instead of generated locations.
  mapRoot : '' 
}));

Keywords

FAQs

Last updated on 28 May 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc