mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
* Added gulp-help-doc definitions * Fixed declaration and tests * Fixed declaration and tests * Definition fixed * Declaration fixed
28 lines
537 B
TypeScript
28 lines
537 B
TypeScript
/// <reference path="gulp-help-doc.d.ts" />
|
|
/// <reference path="../node/node.d.ts" />
|
|
/// <reference path="../gulp/gulp.d.ts" />
|
|
|
|
import gulp = require('gulp');
|
|
import usage = require('gulp-help-doc');
|
|
|
|
/**
|
|
* Demo task
|
|
*
|
|
* @task {demo}
|
|
* @arg {env} environment
|
|
*/
|
|
gulp.task('demo', function() {});
|
|
|
|
let logger: {
|
|
output: string,
|
|
log(msg: string): any
|
|
} = {
|
|
output: '',
|
|
log: msg => logger.output += msg + '\n'
|
|
};
|
|
|
|
usage(gulp, {
|
|
logger: logger,
|
|
gulpfile: __filename
|
|
}).then(() => console.log(logger.output));
|