gonpm

package
v0.0.0-...-376d4f4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPackage

func HasPackage(dir string) string

HasPackage check if directory given has package.json file

func HasPackageLock

func HasPackageLock(dir string) string

HasPackageLock check if directory given has package-lock.json file

func NpmInstall

func NpmInstall(packageFile string, opts tools.ContainerOptions) error

NpmInstall must be use to install package using npm

func NpmUpdate

func NpmUpdate(packageFile string, opts tools.ContainerOptions) error

NpmUpdate must be use to update package using npm

Types

type NodeNpm

type NodeNpm struct {
	ContainerOpts tools.ContainerOptions
}

NodeNpm struct

func NewNodeNpm

func NewNodeNpm(config *viper.Viper) NodeNpm

NewNodeNpm load viper parameters to ContainerOpts struct

func (NodeNpm) Install

func (c NodeNpm) Install(path string)

Install must be use to install package using npm

func (NodeNpm) Update

func (c NodeNpm) Update(path string)

Update must be use to update package using npm

Jump to

Keyboard shortcuts

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