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:
Phips Peter
2015-01-28 17:23:29 -08:00
parent 338059f48e
commit 429c0c5c7d
26 changed files with 709 additions and 0 deletions
+15
View File
@@ -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"
}));
});
+30
View File
@@ -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;
}