Documentation ¶
Index ¶
Constants ¶
View Source
const ( CmdAlwaysAuth = "npm set always-auth true" CmdSetRegistry = "npm config set registry %s" )
View Source
const CmdLogin = `
cat <<EOF > ~/.npmrc
_auth = $(echo "%s:%s" | tr -d "\r\n" | base64)
email = %s
EOF
`
command to create the .npmrc file that stores the login credentials, as opposed to npm login which requires stdin.
View Source
const CmdPublish = `` /* 378-byte string literal not displayed */
command to publish npm package if not published
Variables ¶
Functions ¶
This section is empty.
Types ¶
type NPM ¶
type NPM struct { // The Email address used by NPM to connect // and publish to a repository Email string `yaml:"email,omitempty"` // The Username used by NPM to connect // and publish to a repository Username string `yaml:"username,omitempty"` // The Password used by NPM to connect // and publish to a repository Password string `yaml:"password,omitempty"` // The registry URL of custom npm repository Registry string `yaml:"registry,omitempty"` // A folder containing the package.json file Folder string `yaml:"folder,omitempty"` // Registers the published package with the given tag Tag string `yaml:"tag,omitempty"` // Force npm to always require authentication when accessing the registry. AlwaysAuth bool `yaml:"always_auth"` Condition *condition.Condition `yaml:"when,omitempty"` }
func (*NPM) GetCondition ¶
Click to show internal directories.
Click to hide internal directories.