npm

package
v2.55.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DistTagPropKey = "npm.disttag"
)

Variables

This section is empty.

Functions

func SetArtifactoryAsResolutionServer added in v2.47.12

func SetArtifactoryAsResolutionServer(serverDetails *config.ServerDetails, depsRepo string) (clearResolutionServerFunc func() error, err error)

Creates an .npmrc file in the project's directory in order to configure the provided Artifactory server as a resolution server

Types

type CommonArgs added in v2.5.0

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

func (*CommonArgs) SetBuildConfiguration added in v2.34.0

func (ca *CommonArgs) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *CommonArgs

func (*CommonArgs) SetNpmArgs added in v2.34.0

func (ca *CommonArgs) SetNpmArgs(npmArgs []string) *CommonArgs

func (*CommonArgs) SetRepo added in v2.34.0

func (ca *CommonArgs) SetRepo(repo string) *CommonArgs

func (*CommonArgs) SetServerDetails added in v2.34.0

func (ca *CommonArgs) SetServerDetails(serverDetails *config.ServerDetails) *CommonArgs

type NpmCommand

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

func NewNpmCiCommand

func NewNpmCiCommand() *NpmCommand

func NewNpmCommand added in v2.34.0

func NewNpmCommand(cmdName string, collectBuildInfo bool) *NpmCommand

func NewNpmInstallCommand

func NewNpmInstallCommand() *NpmCommand

func (*NpmCommand) CommandName added in v2.34.0

func (nc *NpmCommand) CommandName() string

func (*NpmCommand) CreateTempNpmrc added in v2.34.0

func (nc *NpmCommand) CreateTempNpmrc() error

func (*NpmCommand) GetRepo added in v2.33.0

func (nc *NpmCommand) GetRepo() string

func (*NpmCommand) Init added in v2.34.0

func (nc *NpmCommand) Init() error

func (*NpmCommand) PreparePrerequisites added in v2.34.0

func (nc *NpmCommand) PreparePrerequisites(repo string) error

func (*NpmCommand) RestoreNpmrcFunc added in v2.34.0

func (nc *NpmCommand) RestoreNpmrcFunc() func() error

func (*NpmCommand) Run added in v2.34.0

func (nc *NpmCommand) Run() (err error)

func (*NpmCommand) ServerDetails added in v2.34.0

func (nc *NpmCommand) ServerDetails() (*config.ServerDetails, error)

func (*NpmCommand) SetArgs added in v2.34.0

func (nc *NpmCommand) SetArgs(args []string) *NpmCommand

func (*NpmCommand) SetBuildConfiguration

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

func (*NpmCommand) SetConfigFilePath added in v2.34.0

func (nc *NpmCommand) SetConfigFilePath(configFilePath string) *NpmCommand

func (*NpmCommand) SetRepo

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

func (*NpmCommand) SetRepoConfig added in v2.34.0

func (nc *NpmCommand) SetRepoConfig(conf *project.RepositoryConfig) *NpmCommand

func (*NpmCommand) SetServerDetails

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

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) GetXrayScan added in v2.47.11

func (npc *NpmPublishCommand) GetXrayScan() bool

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) SetDistTag added in v2.52.0

func (npc *NpmPublishCommand) SetDistTag(tag string) *NpmPublishCommand

func (*NpmPublishCommand) SetScanOutputFormat added in v2.4.1

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

func (*NpmPublishCommand) SetXrayScan

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

type NpmPublishCommandArgs

type NpmPublishCommandArgs struct {
	CommonArgs
	// 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