npm

package
v2.32.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 28 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonArgs added in v2.5.0

type CommonArgs struct {
	NpmCommand
	// contains filtered or unexported fields
}

func (*CommonArgs) CreateTempNpmrc added in v2.29.8

func (ca *CommonArgs) CreateTempNpmrc() error

In order to make sure the npm resolves artifacts from Artifactory we create a .npmrc file in the project dir. If such a file exists we back it up as npmrcBackupFileName.

func (*CommonArgs) GetRestoreNpmrcFunc added in v2.29.8

func (ca *CommonArgs) GetRestoreNpmrcFunc() func() error

func (*CommonArgs) PreparePrerequisites added in v2.29.8

func (ca *CommonArgs) PreparePrerequisites(repo string, overrideNpmrc bool) error

func (*CommonArgs) SetCmdName added in v2.29.8

func (ca *CommonArgs) SetCmdName(cmdName string) *CommonArgs

type GenericCommand added in v2.10.0

type GenericCommand struct {
	*GenericCommandArgs
}

GenericCommand represents any npm command which is not "install", "ci" or "publish".

func NewNpmGenericCommand added in v2.10.0

func NewNpmGenericCommand(cmdName string) *GenericCommand

func (*GenericCommand) CommandName added in v2.10.0

func (gc *GenericCommand) CommandName() string

func (*GenericCommand) Run added in v2.10.0

func (gc *GenericCommand) Run() (err error)

type GenericCommandArgs added in v2.10.0

type GenericCommandArgs struct {
	CommonArgs
}

func (*GenericCommandArgs) ServerDetails added in v2.10.0

func (gca *GenericCommandArgs) ServerDetails() (*config.ServerDetails, error)

type NpmCommand

type NpmCommand struct {
	// contains filtered or unexported fields
}

func (*NpmCommand) SetBuildConfiguration

func (nc *NpmCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *NpmCommand

func (*NpmCommand) SetNpmArgs

func (nc *NpmCommand) SetNpmArgs(npmArgs []string) *NpmCommand

func (*NpmCommand) SetRepo

func (nc *NpmCommand) SetRepo(repo string) *NpmCommand

func (*NpmCommand) SetServerDetails

func (nc *NpmCommand) SetServerDetails(serverDetails *config.ServerDetails) *NpmCommand

type NpmInstallOrCiCommand

type NpmInstallOrCiCommand struct {
	CommonArgs
	// contains filtered or unexported fields
}

func NewNpmCiCommand

func NewNpmCiCommand() *NpmInstallOrCiCommand

func NewNpmInstallCommand

func NewNpmInstallCommand() *NpmInstallOrCiCommand

func (*NpmInstallOrCiCommand) CommandName

func (nic *NpmInstallOrCiCommand) CommandName() string

func (*NpmInstallOrCiCommand) Init added in v2.5.0

func (nic *NpmInstallOrCiCommand) Init() error

func (*NpmInstallOrCiCommand) Run

func (nic *NpmInstallOrCiCommand) Run() (err error)

func (*NpmInstallOrCiCommand) ServerDetails added in v2.9.0

func (nic *NpmInstallOrCiCommand) ServerDetails() (*config.ServerDetails, error)

func (*NpmInstallOrCiCommand) SetArgs

func (nic *NpmInstallOrCiCommand) SetArgs(args []string) *NpmInstallOrCiCommand

func (*NpmInstallOrCiCommand) SetConfigFilePath

func (nic *NpmInstallOrCiCommand) SetConfigFilePath(configFilePath string) *NpmInstallOrCiCommand

func (*NpmInstallOrCiCommand) SetRepoConfig

type NpmPublishCommand

type NpmPublishCommand struct {
	*NpmPublishCommandArgs
	// contains filtered or unexported fields
}

func NewNpmPublishCommand

func NewNpmPublishCommand() *NpmPublishCommand

func (*NpmPublishCommand) CommandName

func (npc *NpmPublishCommand) CommandName() string

func (*NpmPublishCommand) Init added in v2.5.0

func (npc *NpmPublishCommand) Init() error

func (*NpmPublishCommand) IsDetailedSummary

func (npc *NpmPublishCommand) IsDetailedSummary() bool

func (*NpmPublishCommand) Result

func (npc *NpmPublishCommand) Result() *commandsutils.Result

func (*NpmPublishCommand) Run

func (npc *NpmPublishCommand) Run() (err error)

func (*NpmPublishCommand) ServerDetails

func (npc *NpmPublishCommand) ServerDetails() (*config.ServerDetails, error)

func (*NpmPublishCommand) SetArgs

func (npc *NpmPublishCommand) SetArgs(args []string) *NpmPublishCommand

func (*NpmPublishCommand) SetConfigFilePath

func (npc *NpmPublishCommand) SetConfigFilePath(configFilePath string) *NpmPublishCommand

func (*NpmPublishCommand) SetDetailedSummary

func (npc *NpmPublishCommand) SetDetailedSummary(detailedSummary bool) *NpmPublishCommand

func (*NpmPublishCommand) SetScanOutputFormat added in v2.4.1

func (npc *NpmPublishCommand) SetScanOutputFormat(format xrutils.OutputFormat) *NpmPublishCommand

func (*NpmPublishCommand) SetXrayScan

func (npc *NpmPublishCommand) SetXrayScan(xrayScan bool) *NpmPublishCommand

type NpmPublishCommandArgs

type NpmPublishCommandArgs struct {
	NpmCommand
	// contains filtered or unexported fields
}

func NewNpmPublishCommandArgs

func NewNpmPublishCommandArgs() *NpmPublishCommandArgs

Jump to

Keyboard shortcuts

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