Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-tsd-files

rschmukler2MIT0.1.2

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

gulp, tsd, json

readme

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.

changelog

0.1.2 / 2015-10-01

  • fix issue where done wouldn't get called with no nested files to load

0.1.1 / 2015-06-26

  • add support for tsd files that aren't pure imports

0.1.0 / 2015-06-23

  • first commit