Socket
Book a DemoInstallSign in
Socket

gulp-tsd-files

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-tsd-files

Gulp task to source typescript definition files from a tsd.json bundle

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

gulp-tsd-files

Add ES6 modularized typescript definition files for your TS project.

Install

npm install gulp-tsd-files

Usage

var ts = require('gulp-typescript');
var merge = require('merge2');

var modularize = require('gulp-tsd-files');

var pkg = require('package.json');

tsProject = ts.createProject({ declarationFiles: true });

gulp.task('build', function() {
  var tsCompile = gulp.src(TS_PATHS)
    .pipe(ts(tsProject))

  merge(
    tsCompile.js, 
    tsCompile.dts
      .pipe(modularize(pkg.name))
  ).pipe(
    gulp.dest('built/')
  );
});

Notice

Right now this was released as quickly as possible. It has no configuration, no deep linking, etc. If you want this functionality to be configurable, open an issue.

Keywords

gulp

FAQs

Package last updated on 01 Oct 2015

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