Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NpmCli ¶
type NpmCli interface { tools.ExternalTool Install(ctx context.Context, project string) error // RunScript runs the given npm script (if it exists) in the project. // // Returns an error only if the script execution fails. If the script doesn't exist, no error is returned. RunScript(ctx context.Context, projectPath string, scriptName string) error Prune(ctx context.Context, projectPath string, production bool) error }
func NewNpmCli ¶
func NewNpmCli(commandRunner exec.CommandRunner) NpmCli
Click to show internal directories.
Click to hide internal directories.