PHP Class Phulp\Phulp

Datei anzeigen Open project: reisraff/phulp

Public Methods

Method Description
clean ( ) : phulp\PipeInterface
dest ( string $path ) : phulp\PipeInterface
getLoop ( ) : React\EventLoop\LoopInterface Gets the value of loop.
iterate ( callable $callback ) : phulp\PipeInterface
run ( string $task = null )
setLoop ( React\EventLoop\LoopInterface $loop ) Sets the value of loop.
src ( array $dirs, string $pattern = null, boolean $recursive = true ) : Source
start ( array $tasks )
task ( string $name, callable $callback )
watch ( Source $src, mixed $tasks ) : Watch

Method Details

clean() public method

public clean ( ) : phulp\PipeInterface
return phulp\PipeInterface

dest() public method

public dest ( string $path ) : phulp\PipeInterface
$path string
return phulp\PipeInterface

getLoop() public method

Gets the value of loop.
public getLoop ( ) : React\EventLoop\LoopInterface
return React\EventLoop\LoopInterface

iterate() public method

public iterate ( callable $callback ) : phulp\PipeInterface
$callback callable
return phulp\PipeInterface

run() public method

public run ( string $task = null )
$task string

setLoop() public method

Sets the value of loop.
public setLoop ( React\EventLoop\LoopInterface $loop )
$loop React\EventLoop\LoopInterface the loop

src() public method

public src ( array $dirs, string $pattern = null, boolean $recursive = true ) : Source
$dirs array
$pattern string
$recursive boolean
return Source

start() public method

public start ( array $tasks )
$tasks array

task() public method

public task ( string $name, callable $callback )
$name string
$callback callable

watch() public method

public watch ( Source $src, mixed $tasks ) : Watch
$src Source
$tasks mixed
return Watch