fix: gulp don't pass compile2 pattern

This commit is contained in:
progre
2014-09-27 11:21:39 +09:00
parent eef872b96a
commit 880c9e258b
2 changed files with 11 additions and 8 deletions
+9 -1
View File
@@ -12,7 +12,15 @@ gulp.task('compile', function()
.dest('out')
});
gulp.task('test', ['compile'], function()
gulp.task('compile2', function(callback: (err?: any) => void)
{
gulp.src("**/*.ts")
.pipe(typescript)
.dest('out')
.on('end', callback);
});
gulp.task('test', ['compile', 'compile2'], function()
{
gulp.src("out/test/**/*.js")
.pipe(jasmine);
+2 -7
View File
@@ -173,15 +173,10 @@ declare module gulp {
interface ITaskCallback {
/**
* Defines a task.
* Tasks may be made asynchronous if they return a promise or a stream.
*/
(): any;
/**
* Defines an asynchronous task.
* Tasks may be made asynchronous if they are passing a callback or return a promise or a stream.
* @param cb callback used to signal asynchronous completion. Caller includes <code>err</code> in case of error.
*/
(cb:(err?:any)=>void): void;
(cb?:(err?:any)=>void): any;
}
interface EventEmitter {