yarn

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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