Socket
Socket
Sign inDemoInstall

gulp-ts

Package Overview
Dependencies
193
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
Weekly downloads
18
increased by100%
Maintainers
1
Install size
1.06 MB
Created
Weekly downloads
 

Readme

Source

gulp-ts

deprecated!

Switch to e.g. gulp-typescript.

TypeScript compiler plugin for Gulp. Not actively maintained.

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({
  // explicit path to tsc executable file; taken if not falsy
  exePath: '',

  // forces usage of tsc executable file from system PATH
  globalExe: false,

  // 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 23 Feb 2016

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