PHP Класс Eloquent\Composer\NpmBridge\NpmClient

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Composer\Util\ProcessExecutor $processExecutor, ExecutableFinder $executableFinder, callable $getcwd = 'getcwd', callable $chdir = 'chdir' ) Construct a new NPM client.
create ( ) : self Create a new NPM client.
install ( string | null $path = null, boolean | null $isDevMode = null ) Install NPM dependencies for the project at the supplied path.
shrinkwrap ( string | null $path = null ) Shrink-wrap NPM dependencies for the project at the supplied path.
update ( string | null $path = null ) Update NPM dependencies for the project at the supplied path.

Приватные методы

Метод Описание
executeNpm ( $arguments, $workingDirectoryPath )
npmPath ( )

Описание методов

__construct() публичный Метод

Construct a new NPM client.
public __construct ( Composer\Util\ProcessExecutor $processExecutor, ExecutableFinder $executableFinder, callable $getcwd = 'getcwd', callable $chdir = 'chdir' )
$processExecutor Composer\Util\ProcessExecutor The process executor to use.
$executableFinder Symfony\Component\Process\ExecutableFinder The executable finder to use.
$getcwd callable The getcwd() implementation to use.
$chdir callable The chdir() implementation to use.

create() публичный статический Метод

Create a new NPM client.
public static create ( ) : self
Результат self The newly created client.

install() публичный Метод

Install NPM dependencies for the project at the supplied path.
public install ( string | null $path = null, boolean | null $isDevMode = null )
$path string | null The path to the NPM project, or null to use the current working directory.
$isDevMode boolean | null True if dev dependencies should be included.

shrinkwrap() публичный Метод

Shrink-wrap NPM dependencies for the project at the supplied path.
public shrinkwrap ( string | null $path = null )
$path string | null The path to the NPM project, or null to use the current working directory.

update() публичный Метод

Update NPM dependencies for the project at the supplied path.
public update ( string | null $path = null )
$path string | null The path to the NPM project, or null to use the current working directory.