Socket
Socket
Sign inDemoInstall

gulp-ts

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-ts

TypeScript compiler Gulp plugin


Version published
Weekly downloads
29
increased by480%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 21 Mar 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc