cakephp-potion
Version:
CakePHP Potion - Painless Gulp for CakePHP
27 lines (22 loc) • 708 B
JavaScript
var gulp = require('gulp');
var Potion = require('cakephp-potion');
/*
|----------------------------------------------------------------
| TDD Watcher
|----------------------------------------------------------------
|
| This task will keep an eye on any tasks that are part of the
| tdd category. By default this includes PHPUnit and PHPSpec
| tests. Run `gulp tdd` and your tests will auto-trigger.
|
*/
gulp.task('tdd', function() {
new Potion.Log.message('Watching for tests...');
Potion.tasks
.filter(function(task) {
return task.category == 'tdd';
})
.forEach(function(task) {
gulp.watch(task.watchers, [task.name]);
});
});