nodejs

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNpm

func BuildNpm() build.Tool

func BuildYarn

func BuildYarn() build.Tool

func NpmDeps

func NpmDeps(packageLockJsonContents string) (map[string]build.Dependency, error)

func YarnDeps

func YarnDeps(yarnLockContents string) (map[string]build.Dependency, error)

Types

type Npm

type Npm struct {
	BuildFilePatterns []string
}

func (Npm) BuildFiles

func (n Npm) BuildFiles() []string

func (Npm) ResolveDeps

func (n Npm) ResolveDeps(workDir string) (*build.ArtifactDependencies, error)

type Yarn

type Yarn struct {
	BuildFilePatterns []string
}

func (Yarn) BuildFiles

func (y Yarn) BuildFiles() []string

func (Yarn) ResolveDeps

func (y Yarn) ResolveDeps(workDir string) (*build.ArtifactDependencies, error)

Jump to

Keyboard shortcuts

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