mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +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,9 @@
|
||||
/// <reference path="./gulp-mocha.d.ts"/>
|
||||
/// <reference path="../gulp/gulp.d.ts"/>
|
||||
import gulp = require("gulp");
|
||||
import mocha = require("gulp-mocha");
|
||||
|
||||
gulp.task('default', function () {
|
||||
return gulp.src('test.js', {read: false})
|
||||
.pipe(mocha({reporter: 'nyan'}));
|
||||
});
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// Type definitions for gulp-mocha
|
||||
// Project: https://github.com/sindresorhus/gulp-mocha
|
||||
// Definitions by: Asana <https://asana.com>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../mocha/mocha.d.ts"/>
|
||||
/// <reference path="../node/node.d.ts"/>
|
||||
|
||||
declare module "gulp-mocha" {
|
||||
function mocha(setupOptions: MochaSetupOptions): NodeJS.ReadWriteStream;
|
||||
export = mocha;
|
||||
}
|
||||
Reference in New Issue
Block a user