mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 06:22:55 +08:00
22 lines
463 B
TypeScript
22 lines
463 B
TypeScript
/// <reference path="gulp.d.ts" />
|
|
|
|
import gulp = require("gulp");
|
|
|
|
var typescript: any = null; // this would be the TypeScript compiler
|
|
var jasmine: any = null; // this would be the jasmine test runner
|
|
|
|
gulp.task('compile', function()
|
|
{
|
|
gulp.src("**/*.ts")
|
|
.pipe(typescript)
|
|
.dest('out')
|
|
});
|
|
|
|
gulp.task('test', ['compile'], function()
|
|
{
|
|
gulp.src("out/test/**/*.js")
|
|
.pipe(jasmine);
|
|
});
|
|
|
|
gulp.task('default', ['compile', 'test']);
|