mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Adding a bunch of gulp utilities
This should allow a developer to write a gulpfile in TypeScript to compile a TypeScript project.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/// <reference path="./gulp-typedoc.d.ts"/>
|
||||
/// <reference path="../gulp/gulp.d.ts"/>
|
||||
import gulp = require("gulp");
|
||||
import typedoc = require("gulp-typedoc");
|
||||
|
||||
gulp.task("typedoc", function() {
|
||||
return gulp
|
||||
.src(["data/*.ts"])
|
||||
.pipe(typedoc({
|
||||
module: "commonjs",
|
||||
out: "./out",
|
||||
name: "my-project",
|
||||
target: "es5"
|
||||
}));
|
||||
});
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
// Type definitions for gulp-typedoc
|
||||
// Project: https://github.com/rogierschouten/gulp-typedoc
|
||||
// Definitions by: Asana <https://asana.com>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../node/node.d.ts"/>
|
||||
|
||||
declare module "gulp-typedoc" {
|
||||
interface Options {
|
||||
out: string;
|
||||
mode?: string;
|
||||
json?: string;
|
||||
exclude?: string;
|
||||
includeDeclarations?: boolean;
|
||||
externalPattern?: string;
|
||||
excludeExternals?: boolean;
|
||||
module?: string;
|
||||
target?: string;
|
||||
theme?: string;
|
||||
name?: string;
|
||||
readme?: string;
|
||||
hideGenerator?: boolean;
|
||||
gaID?: string;
|
||||
gaSite?: string;
|
||||
verbose?: boolean;
|
||||
}
|
||||
|
||||
function typedoc(opts: Options): NodeJS.ReadWriteStream;
|
||||
export = typedoc;
|
||||
}
|
||||
Reference in New Issue
Block a user