Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 605e0a3af8
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (29 sloc) 0.694 kb
<?php
function builder() {
return \Phake\Builder::$global;
}
function task() {
$deps = func_get_args();
$name = array_shift($deps);
if ($deps[count($deps) - 1] instanceof Closure) {
$work = array_pop($deps);
} else {
$work = null;
}
builder()->add_task($name, $work, $deps);
}
function group($name, $lambda = null) {
builder()->push_group($name);
if ($lambda instanceof Closure) $lambda();
builder()->pop_group();
}
function before($task, $lambda) {
builder()->before($task, $lambda);
}
function after($task, $lambda) {
builder()->after($task, $lambda);
}
function desc($description) {
builder()->desc($description);
}
?>
Jump to Line
Something went wrong with that request. Please try again.