Documentation
¶
Index ¶
- type NpmClient
- func (c *NpmClient) DetectFirewallError(stderr string) bool
- func (c *NpmClient) DetectRegistry(explicitRegistry string) (*pkgmgr.RegistryInfo, error)
- func (c *NpmClient) FallbackOrgProject() (string, string)
- func (c *NpmClient) Name() string
- func (c *NpmClient) PackageType() string
- func (c *NpmClient) ResolveDependencies(progress p.Reporter) (*pkgmgr.DependencyResult, error)
- func (c *NpmClient) RunCommand(command string, args []string) (*pkgmgr.InstallResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NpmClient ¶
type NpmClient struct{}
NpmClient implements pkgmgr.Client for npm.
func (*NpmClient) DetectFirewallError ¶
func (*NpmClient) DetectRegistry ¶
func (c *NpmClient) DetectRegistry(explicitRegistry string) (*pkgmgr.RegistryInfo, error)
DetectRegistry detects the HAR registry from saved config or .npmrc files.
func (*NpmClient) FallbackOrgProject ¶
func (*NpmClient) PackageType ¶
func (*NpmClient) ResolveDependencies ¶
ResolveDependencies resolves all npm dependencies from lock files. If no lock file exists, generates one with npm install --package-lock-only.
func (*NpmClient) RunCommand ¶
RunCommand executes a native npm command with live output streaming.
Click to show internal directories.
Click to hide internal directories.