binary

package
v0.0.390 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppRootPath = "/app"
)

Variables

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

Functions

func GenerateBackendConfFromMap

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

func NodeEnv

func NodeEnv(env *schema.Environment) string

func NodejsBuilder

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

Types

type BackendDefinition

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

type BackendsOpts added in v0.0.87

type BackendsOpts struct {
	// If true, generate a placeholder file with a comment explaining that the
	// actual values are resolved at build time.
	Placeholder bool
	// If true, the URLs in the generated file will be in-cluster addresses rather than from ingress.
	UseInClusterAddresses bool
}

type PackageManager

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

func LookupPackageManager

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

Jump to

Keyboard shortcuts

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