bun

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package bun generates the Dockerfile for Bun projects. It is currently the wrapper of Node.js planner.

Index

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

func GenerateDockerfile(meta types.PlanMeta) (string, error)

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.

func NewPacker

func NewPacker() packer.Packer

NewPacker returns a new Node.js packer.

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.

Jump to

Keyboard shortcuts

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