npm

package
v0.0.0-...-6ab3b6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL