Skip to content

Commit

Permalink
update gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hirak committed Feb 28, 2016
1 parent bfac824 commit 0796454
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gulpfile.js
Expand Up @@ -15,7 +15,7 @@ function test(done) {
var p = exec('composer test');
p.stdout.pipe(process.stdout);
p.stderr.pipe(process.stderr);
p.on('end', done);
p.on('exit', done);
}

function inspect(done) {
Expand All @@ -28,7 +28,7 @@ function inspect(done) {
var lint = exec('composer lint');
lint.stdout.pipe(process.stdout);
lint.stderr.pipe(process.stderr);
lint.on('end', wait);
lint.on('exit', wait);
}

gulp.task('test', test);
Expand All @@ -38,11 +38,14 @@ gulp.task('start', function(){
bs.init({
server: {
baseDir: "artifacts/"
}
},
ghostMode: false
});

gulp.watch(['src/**/*.php', 'tests/**/*Test.php'], {}, function(ev){
test(bs.reload);
inspect(function(){
test(bs.reload);
});
});
});

0 comments on commit 0796454

Please sign in to comment.