2.0 KiB
2.0 KiB
Bower Tasks
Install
Bower Install
<?php
// simple execution
$this->taskBowerInstall()->run();
// prefer dist with custom path
$this->taskBowerInstall('path/to/my/bower')
->noDev()
->run();
?>
allowRoot()addsallow-rootoption to bowerforceLatest()addsforce-latestoption to bowernoDev()addsproductionoption to boweroffline()addsofflineoption to bowerdir($dir)Changes working directory of commandprinted($arg)Should command output be printedarg($arg)Pass argument to executable. Its value will be automatically escaped.args($args)Pass methods parameters as arguments to executable. Argument valuesrawArg($arg)Pass the provided string in its raw (as provided) form as an argument to executable.option($option, $value = null)Pass option to executable. Options are prefixed with--, value can be provided in second parameter.optionList($option, $value = null)Pass multiple options to executable. Value can be a string or array.
Update
Bower Update
<?php
// simple execution
$this->taskBowerUpdate->run();
// prefer dist with custom path
$this->taskBowerUpdate('path/to/my/bower')
->noDev()
->run();
?>
allowRoot()addsallow-rootoption to bowerforceLatest()addsforce-latestoption to bowernoDev()addsproductionoption to boweroffline()addsofflineoption to bowerdir($dir)Changes working directory of commandprinted($arg)Should command output be printedarg($arg)Pass argument to executable. Its value will be automatically escaped.args($args)Pass methods parameters as arguments to executable. Argument valuesrawArg($arg)Pass the provided string in its raw (as provided) form as an argument to executable.option($option, $value = null)Pass option to executable. Options are prefixed with--, value can be provided in second parameter.optionList($option, $value = null)Pass multiple options to executable. Value can be a string or array.