Documentation
¶
Index ¶
Constants ¶
View Source
const ( Node = "node" NodeModules = "node_modules" )
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
func Detect(projectPathParser PathParser) packit.DetectFunc
Types ¶
type PathParser ¶ added in v0.0.5
type ProjectPathParser ¶ added in v0.0.5
type ProjectPathParser struct{}
ProjectPathParser provides a mechanism for determining the proper working directory for the build process.
func NewProjectPathParser ¶ added in v0.0.5
func NewProjectPathParser() ProjectPathParser
NewProjectPathParser creates an instance of a ProjectPathParser.
func (ProjectPathParser) Get ¶ added in v0.0.5
func (p ProjectPathParser) Get(path string) (string, error)
Get will resolve the absolute path of the directory specified by the $BP_NODE_PROJECT_PATH environment variable. It assumes that $BP_NODE_PROJECT_PATH is relative to the provided path argument.
Click to show internal directories.
Click to hide internal directories.