Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateBackendConfFromMap(ctx context.Context, backends map[string]*BackendDefinition, ...) ([]byte, error)
- func NodeEnv(env *schema.Environment) string
- func NodejsBuilder(env cfg.Context, loc pkggraph.Location, config *schema.NodejsBuild, ...) (build.Spec, error)
- type BackendDefinition
- type BackendsOpts
- type PackageManager
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 ¶
Types ¶
type BackendDefinition ¶
type BackendsOpts ¶ added in v0.0.87
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)
Click to show internal directories.
Click to hide internal directories.