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

Package detail

gulp-tsd

moznion411MIT0.1.1TypeScript support: definitely-typed

Gulp plugin to automate TSD and TypeScript definition related tasks

gulp, tsd

readme

gulp-tsd NPM version Build Status Dependency Status

Gulp plugin to automate TSD and TypeScript definition related tasks

GETTING START

1. Install gulp-tsd

npm install --save-dev gulp-tsd

2. Write gulpfile.js

For example;

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

gulp.task('tsd', function () {
    return gulp.src('./gulp_tsd.json').pipe(tsd());
});

or if you want to specify your options inline in your gulpfile

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

gulp.task('tsd', function (callback) {
    tsd({
        command: 'reinstall',
        config: './tsd.json'
    }, callback);
});

3. Write gulp_tsd.json (see blow)

4. Write tsd.json (see below)

5. Run!

DESCRIPTION

gulp_tsd.json (convenient name, you can give a name as you like)

Setting file for this plugin. Pass this file to entry point of this plugin through gulp.src.

e.g.

    {
        "command": "reinstall", // this plugin supports only "reinstall"
        "latest": true,         // if this property is true, tsd always fetches HEAD definitions
        "config": "./tsd.json", // file path for configuration file (see below)
        "opts": {
            // options, EXPERIMENTAL
        }
    }

tsd.json (convenient name, you can give a name as you like)

Configuration file for tsd. Specify this file by setting json (yes, above one).

e.g.

{
    "version": "v4",
    "repo": "borisyankov/DefinitelyTyped",
    "ref": "master",
    "path": "typings",
    "bundle": "typings/tsd.d.ts",
    "installed": {
        "jquery/jquery.d.ts": {
            "commit": "0de1592ef9e3144b925287ca0494f621e12b01c6"
        }
    }
}

Please refer to the tsd.json to get more information.

DEBUGGING

This library uses the popular debug module for debugging. To enable logging, set the DEBUG environment variable when running gulp tasks like so:

DEBUG=gulp-tsd gulp tsd

NOTES

A lot of codes are from grunt-tsd. Thanks.

SEE ALSO

LICENSE

MIT

changelog

Revision history for gulp-tsd

0.1.1 2016-03-03T12:55:02X

- Add "rebundle" command which calls API.updateBundle similarly to how

CLI.rebundle works.

0.1.0 2016-01-13T13:58:55Z

- Allow configurable debugging by using `debug` module (@goldcaddy77)
  See: https://github.com/moznion/gulp-tsd/pull/14

0.0.4 2014-12-02T14:09:01Z

- Update dependent tsd version (@Nemo157)
  See: https://github.com/moznion/gulp-tsd/pull/5

0.0.3 2014-08-20T16:01:44Z

- Fixed path resolving to allow place the config into nested folders instead of root (@ebaranov)
- Allow passing in options instead of file (@Nemo157)

0.0.2 2014-05-30T23:54:11Z

- Fix some typos in doc

0.0.1 2014-05-30T23:32:23Z

- original version