Documentation
¶
Overview ¶
Package bun generates the Dockerfile for Bun projects. It is currently the wrapper of Node.js planner.
Index ¶
- func DetermineFramework(ctx *PlanContext) types.BunFramework
- func DetermineVersion(ctx *PlanContext) string
- func GenerateDockerfile(meta types.PlanMeta) (string, error)
- func GetMeta(opt GetMetaOptions) types.PlanMeta
- func NewIdentifier() plan.Identifier
- func NewPacker() packer.Packer
- type GetMetaOptions
- type PlanContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineFramework ¶
func DetermineFramework(ctx *PlanContext) types.BunFramework
DetermineFramework determines the framework of the Bun project.
func DetermineVersion ¶
func DetermineVersion(ctx *PlanContext) string
DetermineVersion determines the Bun version to use.
func GenerateDockerfile ¶
GenerateDockerfile generates the Dockerfile for Bun projects.
func GetMeta ¶
func GetMeta(opt GetMetaOptions) types.PlanMeta
GetMeta gets the metadata of the Node.js project.
func NewIdentifier ¶
func NewIdentifier() plan.Identifier
NewIdentifier returns a new Bun identifier.
Types ¶
type GetMetaOptions ¶
type GetMetaOptions nodejs.GetMetaOptions
GetMetaOptions is the options for GetMeta.
type PlanContext ¶
type PlanContext struct {
PackageJSON nodejs.PackageJSON
Src afero.Fs
Config plan.ImmutableProjectConfiguration
Framework optional.Option[types.BunFramework]
}
PlanContext is the context for Bun project planning.
func CreateBunContext ¶
func CreateBunContext(opt GetMetaOptions) *PlanContext
CreateBunContext creates a new PlanContext.
Click to show internal directories.
Click to hide internal directories.