Method | Description | |
---|---|---|
__construct ( Composer\Util\ProcessExecutor $processExecutor, |
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. |
Method | Description | |
---|---|---|
executeNpm ( $arguments, $workingDirectoryPath ) | ||
npmPath ( ) |
public __construct ( Composer\Util\ProcessExecutor $processExecutor, |
||
$processExecutor | Composer\Util\ProcessExecutor | The process executor to use. |
$executableFinder | The executable finder to use. | |
$getcwd | callable | The getcwd() implementation to use. |
$chdir | callable | The chdir() implementation to use. |
public static create ( ) : self | ||
return | self | The newly created client. |
public shrinkwrap ( string | null $path = null ) | ||
$path | string | null | The path to the NPM project, or null to use the current working directory. |