mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +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,25 @@
|
||||
/// <reference path="./gulp-gh-pages.d.ts"/>
|
||||
/// <reference path="../gulp/gulp.d.ts"/>
|
||||
import gulp = require("gulp");
|
||||
import ghPages = require("gulp-gh-pages");
|
||||
|
||||
gulp.src("test.css")
|
||||
.pipe(ghPages());
|
||||
|
||||
gulp.src("test.css")
|
||||
.pipe(ghPages({remoteUrl: "https://github.com/Asana/DefinitelyTyped.git"}));
|
||||
|
||||
gulp.src("test.css")
|
||||
.pipe(ghPages({origin: "origin"}));
|
||||
|
||||
gulp.src("test.css")
|
||||
.pipe(ghPages({branch: "master"}));
|
||||
|
||||
gulp.src("test.css")
|
||||
.pipe(ghPages({cacheDir: "/tmp"}));
|
||||
|
||||
gulp.src("test.css")
|
||||
.pipe(ghPages({push: false}));
|
||||
|
||||
gulp.src("test.css")
|
||||
.pipe(ghPages({message: "master"}));
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
// Type definitions for gulp-gh-pages
|
||||
// Project: https://github.com/rowoot/gulp-gh-pages
|
||||
// Definitions by: Asana <https://asana.com>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../node/node.d.ts"/>
|
||||
|
||||
declare module "gulp-gh-pages" {
|
||||
interface Options {
|
||||
remoteUrl?: string;
|
||||
origin?: string;
|
||||
branch?: string;
|
||||
cacheDir?: string;
|
||||
push?: boolean;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
function ghPages(opts?: Options): NodeJS.ReadWriteStream;
|
||||
|
||||
export = ghPages;
|
||||
}
|
||||
Reference in New Issue
Block a user