You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Interface to create commands geared towards npm on the fly. Implementations must take care of setting the npm binary. The npm command should be the first
25
+
* argument.
26
+
*/
27
+
interface iNpmCommandFactory {
28
+
29
+
/**
30
+
* Implementations MUST make sure the command gets the correct binary (e.g. from deployer) and that all parameters are passed on correctly
31
+
*
32
+
* @param string $command The npm command to run, e.g. 'install' or 'run'
33
+
* @param array<int, string> $arguments Array of arguments to pass to the command with numerical indexes so the arguments can be expanded, e.g. ['--production', '--fund=false']
34
+
* @param array<string, string> $envVars Array of env vars to pass to the command with the name as key.
35
+
* @param bool $sudo Flag if the command should be executed as root
36
+
* @param iRunConfiguration|null $runConfiguration The run configuration for the command. Defaults to an empty configuration
* Interface to create a command for running npm scripts. Implementations must make sure to set the command correctly together with the script name in the
25
+
* arguments
26
+
*/
27
+
interface iNpmRunCommandFactory {
28
+
29
+
/**
30
+
* Implementations MUST make sure the command gets the correct binary and command to run the script and pass on all parameters correctly
31
+
*
32
+
* @param string $scriptName The name of the script to run
33
+
* @param array<int, string> $arguments Array of arguments to pass to the command with numerical indexes so the arguments can be expanded, e.g. ['--production', '--fund=false']
34
+
* @param array<string, string> $envVars Array of env vars to pass to the command with the name as key.
35
+
* @param bool $sudo Flag if the command should be executed as root
36
+
* @param iRunConfiguration|null $runConfiguration The run configuration for the command. Defaults to an empty configuration
0 commit comments