0.1.10 • Published 9 years ago

grunt-dts-concat v0.1.10

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

grunt-dts-concat

Combines TypeScript .d.ts files into a single .d.ts file for distributing CommonJS modules.

This project is under development and should not be used.

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-dts-concat --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-dts-concat');

The "dts_concat" task

Overview

In your project's Gruntfile, add a section named dts_concat to the data object passed into grunt.initConfig().

grunt.initConfig({
  dts_concat: {
    options: {
      name: 'my-module',
      main: 'build/index.d.ts'
    }
  }
});

Options

name

Type: String

The name of the module specified in package.json. Used to generate ambient external module declaration.

main

Type: String

The path to the .d.ts file generated by TypeScript for the main module.

outDir

Type: String Default value: '<baseDir>'

Optional. The output directory.

out

Type: String Default value: '<baseDir>/<name>.d.ts'

Optional. Full path to the output file. If out is specified then outDir is ignored.

indent

Type: String

Optional. Character sequence to use for indent. Default is four spaces.

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago