Documentation ¶
Overview ¶
Package npm exposes npm functionality as library.
Index ¶
- func Npm(ctx context.Context, args ...string) error
- func NpmWith(_ context.Context, env map[string]string, args ...string) error
- type Cmd
- func (c Cmd) Audit(ctx context.Context) error
- func (c Cmd) CleanInstall(ctx context.Context) error
- func (c Cmd) Install(ctx context.Context) error
- func (c Cmd) Npm(ctx context.Context, args ...string) error
- func (c Cmd) Run(ctx context.Context, args ...string) error
- func (c Cmd) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cmd ¶
func NewCmd ¶
NewCmd creates npm command that runs always with given args. This can be useful for example creating command that runs always within given context.
func (Cmd) CleanInstall ¶
CleanInstall does clean install on npm dependencies.
Click to show internal directories.
Click to hide internal directories.