ts

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BundleChartsRecursive

func BundleChartsRecursive(ctx context.Context, chart helmchart.Accessor, path string, rebuildBundle bool, binaryPath string) error

func DownloadDenoForPlatform

func DownloadDenoForPlatform(ctx context.Context, goos, goarch, destDir string) (string, error)

DownloadDenoForPlatform downloads the pinned Deno release for an arbitrary target platform into destDir and returns the path of the extracted binary.

func EnsureGitignore

func EnsureGitignore(chartPath string) error

EnsureGitignore adds TypeScript entries to .gitignore, creating if needed.

func GetTSOptionsFromContext

func GetTSOptionsFromContext(ctx context.Context) common.TypeScriptOptions

func InitChartStructure

func InitChartStructure(ctx context.Context, chartPath, chartName string) error

InitChartStructure creates values.yaml and .helmignore if they don't exist. If values.yaml already exists, creates values-ts-example.yaml instead. Returns error if ts/ directory already exists.

func InitTSBoilerplate

func InitTSBoilerplate(ctx context.Context, chartPath, chartName string, opts InitTSBoilerplateOptions) error

func NewContextWithTSOptions

func NewContextWithTSOptions(ctx context.Context, opts common.TypeScriptOptions) context.Context

func RenderChart

func RenderChart(ctx context.Context, chart helmchart.Accessor, renderedValues chartcommon.Values, rebuildBundle bool, chartPath, tempDirPath, denoBinaryPath string) (map[string]string, error)

func RunDenoInstall

func RunDenoInstall(ctx context.Context, chartPath, binaryPath string) error

Types

type InitTSBoilerplateOptions

type InitTSBoilerplateOptions struct {
	RenderContextType string
}

Directories

Path Synopsis
Package denolock provides the pinned Deno release nelm downloads and embeds.
Package denolock provides the pinned Deno release nelm downloads and embeds.

Jump to

Keyboard shortcuts

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