yarn

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MPL-2.0 Imports: 14 Imported by: 2

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 Child added in v1.0.24

type Child struct {
	Name     string
	Color    string
	Children []Child
}

type Data added in v1.0.24

type Data struct {
	Trees []Child
}

type Output added in v1.0.24

type Output struct {
	Data Data
}

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

func (SystemYarn) List added in v1.0.24

func (y SystemYarn) List(dir string, devDependencies bool) (graph.Deps, 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
	// List returns a dependency graph.
	List(target string, devDependencies bool) (graph.Deps, error)
}

func New

func New() (YarnTool, error)

Jump to

Keyboard shortcuts

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