Created
July 23, 2015 02:38
-
-
Save dj1020/f0785a2ea5921aa5fbad to your computer and use it in GitHub Desktop.
Gulp with PHPUnit simplest config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
exec = require('child_process').exec, | |
sys = require('sys'), | |
util = require('util'); | |
gulp.task('phpunit', function() { | |
exec('clear', function(error, stdout, stderr){ | |
util.puts(stdout); | |
exec('phpunit', function(error, stdout) { | |
sys.puts(stdout); | |
}); | |
}); | |
}); | |
gulp.task('watch', function() { | |
gulp.watch('./**/*.php', ['phpunit']); | |
}); | |
gulp.task('default', ['phpunit', 'watch']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment