Skip to content

Commit

Permalink
Move IGulpPlugin into gulp namespace, Gulp extends orchestrator, and …
Browse files Browse the repository at this point in the history
…gulp#watch method returns NodeJS.EventEmitter
  • Loading branch information
tkqubo committed Aug 25, 2015
1 parent 5948569 commit fbdc1b9
Show file tree
Hide file tree
Showing 7 changed files with 281 additions and 255 deletions.
2 changes: 2 additions & 0 deletions gulp-protractor/gulp-protractor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/// <reference path="../gulp/gulp.d.ts" />

declare module 'gulp-protractor' {
import gulp = require('gulp');

interface IOptions {
configFile?: string;
args?: Array<string>;
Expand Down
2 changes: 1 addition & 1 deletion gulp-tsd/gulp-tsd-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gulp.task("tsd", () => {
.pipe(tsd());
});

gulp.task("tsd:options", callback => {
gulp.task("tsd:options", (callback: any) => {
tsd({
command: "reinstall",
config: "tsd.json"
Expand Down
1 change: 1 addition & 0 deletions gulp-tsd/gulp-tsd.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/// <reference path="../gulp/gulp.d.ts" />

declare module "gulp-tsd" {
import gulp = require('gulp');

interface IOptions {
command?: string;
Expand Down
7 changes: 5 additions & 2 deletions gulp/gulp-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import gulp = require("gulp");
import browserSync = require("browser-sync");

var typescript: IGulpPlugin = null; // this would be the TypeScript compiler
var jasmine: IGulpPlugin = null; // this would be the jasmine test runner
var typescript: gulp.IGulpPlugin = null; // this would be the TypeScript compiler
var jasmine: gulp.IGulpPlugin = null; // this would be the jasmine test runner

gulp.task('compile', function()
{
Expand All @@ -31,6 +31,7 @@ gulp.task('test', ['compile', 'compile2'], function()
gulp.task('default', ['compile', 'test']);



var opts = {};

gulp.watch('*.html', 'compile');
Expand Down Expand Up @@ -66,3 +67,5 @@ gulp.task('serve', ['compile'], () => {
var browser = browserSync.create();
gulp.watch(['*.html', '*.ts'], ['compile', browser.reload]);
});

gulp.start('test', 'compile');
Loading

0 comments on commit fbdc1b9

Please sign in to comment.