yarn

package
v0.7.19 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProject

func FromProject(manifestPath string, lockFilePath string) (graph.Deps, error)

FromProject builds a dependency graph based on the provided lockfile and manifest

Types

type SystemYarn

type SystemYarn struct {
	Cmd string
}

func (SystemYarn) Exists

func (y SystemYarn) Exists() bool

func (SystemYarn) Install

func (y SystemYarn) Install(dir string) error

type YarnTool

type YarnTool interface {
	// TODO: implement yarn list --production --frozen-lockfile. Skipping for now because the implementation relies 100% on yarn.lock
	// List(dir string) error
	Install(dir string) error
	// Exists returns true if yarn is available
	Exists() bool
}

func New

func New() (YarnTool, error)

Jump to

Keyboard shortcuts

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