binary

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppRootPath = "/app"
)

Variables

View Source
var (
	NodejsExclude = []string{"**/.yarn/cache", "**/.pnp.*"}
)

Functions

func GenerateBackendConfFromMap

func GenerateBackendConfFromMap(ctx context.Context, backends map[string]*BackendDefinition, placeholder bool) ([]byte, error)

func NodeEnv added in v0.0.73

func NodeEnv(env *schema.Environment) string

func NodejsBuilder

func NodejsBuilder(env cfg.Context, loc pkggraph.Location, config *schema.ImageBuildPlan_NodejsBuild, assets assets.AvailableBuildAssets, isFocus bool) (build.Spec, error)

Types

type BackendDefinition

type BackendDefinition struct {
	Managed   string   `json:"managed,omitempty"`
	Unmanaged []string `json:"unmanaged,omitempty"`
}

type PackageManager added in v0.0.73

type PackageManager struct {
	CLI                 string
	MakeState           llb.StateOption
	RequiredFiles       []string // Files patterns which are relevant to this package manager.
	WildcardDirectories []string
	ExcludePatterns     []string
}

func LookupPackageManager added in v0.0.73

func LookupPackageManager(pkgMgr schema.NodejsIntegration_NodePkgMgr) (*PackageManager, error)

Jump to

Keyboard shortcuts

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