web_runtime_goscript_build

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoScriptSharedWebPkgID = "@s4wave/goscript-shared"
)

Variables

This section is empty.

Functions

func BuildWebGoScriptPluginScript

func BuildWebGoScriptPluginScript(
	ctx context.Context,
	le *logrus.Entry,
	bldrDistRoot,
	workDir,
	goScriptOutputRoot,
	outPath,
	mainPackagePath string,
	minify,
	sourcemaps,
	codeSplitting bool,
) ([]string, error)

BuildWebGoScriptPluginScript builds the web plugin runtime entrypoint script.

func BuildWebGoScriptPluginScriptWithOptions added in v0.54.0

func BuildWebGoScriptPluginScriptWithOptions(
	ctx context.Context,
	le *logrus.Entry,
	bldrDistRoot,
	workDir,
	goScriptOutputRoot,
	outPath,
	mainPackagePath string,
	minify,
	sourcemaps,
	codeSplitting bool,
	sharedOptions GoScriptSharedBundleOptions,
) ([]string, error)

BuildWebGoScriptPluginScriptWithOptions builds the web plugin runtime entrypoint script.

func BuildWebGoScriptRuntimeScript added in v0.52.0

func BuildWebGoScriptRuntimeScript(
	ctx context.Context,
	le *logrus.Entry,
	bldrDistRoot,
	workDir,
	goScriptOutputRoot,
	outPath,
	mainPackagePath string,
	minify,
	sourcemaps,
	codeSplitting bool,
) ([]string, error)

BuildWebGoScriptRuntimeScript builds the browser shell runtime entrypoint.

func GoScriptBundleReportPath added in v0.52.0

func GoScriptBundleReportPath(workDir string) string

GoScriptBundleReportPath returns the build-private report path for a GoScript wrapper work directory.

Types

type GoScriptSharedBundleOptions added in v0.54.0

type GoScriptSharedBundleOptions struct {
	WebPkgID string
	Enabled  bool
}

GoScriptSharedBundleOptions configures shared provider publication and consumer externalization.

type GoScriptSharedImportMap added in v0.54.0

type GoScriptSharedImportMap map[string]string

GoScriptSharedImportMap maps a local @goscript import to the provider URL that serves the shared module.

func BuildWebGoScriptSharedProviderScript added in v0.54.0

func BuildWebGoScriptSharedProviderScript(
	ctx context.Context,
	le *logrus.Entry,
	bldrDistRoot,
	workDir,
	goScriptOutputRoot,
	outWebPkgPath,
	webPkgID string,
	minify,
	sourcemaps bool,
) (GoScriptSharedImportMap, []string, error)

BuildWebGoScriptSharedProviderScript builds the shared GoScript provider web package.

Jump to

Keyboard shortcuts

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