Documentation
¶
Index ¶
- Variables
- func BuildAndCheckoutEsbuildSubManifest(ctx context.Context, le *logrus.Entry, ...) (web_pkg.WebPkgRefSlice, []string, ...)
- func BuildAndCheckoutViteSubManifest(ctx context.Context, le *logrus.Entry, ...) (web_pkg.WebPkgRefSlice, []string, []*bldr_web_bundler_vite.ViteOutputMeta, ...)
- func BuildDirectWebPkgs(ctx context.Context, le *logrus.Entry, distSourcePath string, ...) (web_pkg.WebPkgRefSlice, []string, []web_pkg_vite.ImportMapEntry, error)
Constants ¶
This section is empty.
Variables ¶
var EsbuildAssetSubdir = "esb"
EsbuildAssetSubdir is the sub-directory for esbuild assets within the assets dir.
var ViteAssetSubdir = "v"
ViteAssetSubdir is the sub-directory for vite assets within the assets dir.
Functions ¶
func BuildAndCheckoutEsbuildSubManifest ¶
func BuildAndCheckoutEsbuildSubManifest( ctx context.Context, le *logrus.Entry, host bldr_manifest_builder.BuildManifestHost, buildWorld world.Engine, outAssetsPath string, esbuildBuilderProto *configset_proto.ControllerConfig, ) (web_pkg.WebPkgRefSlice, []string, []*bldr_web_bundler_esbuild.EsbuildOutputMeta, error)
BuildAndCheckoutEsbuildSubManifest builds the esbuild sub-manifest and checks out the results. It returns the web package references, source files, and esbuild output metadata extracted from the sub-manifest. The caller is responsible for constructing and validating the esbuildBuilderProto.
func BuildAndCheckoutViteSubManifest ¶
func BuildAndCheckoutViteSubManifest( ctx context.Context, le *logrus.Entry, host bldr_manifest_builder.BuildManifestHost, buildWorld world.Engine, outAssetsPath string, viteBuilderProto *configset_proto.ControllerConfig, ) (web_pkg.WebPkgRefSlice, []string, []*bldr_web_bundler_vite.ViteOutputMeta, error)
BuildAndCheckoutViteSubManifest builds the vite sub-manifest and checks out the results. It returns the web package references, source files, and vite output metadata extracted from the sub-manifest. The caller is responsible for constructing and validating the viteBuilderProto.
func BuildDirectWebPkgs ¶
func BuildDirectWebPkgs( ctx context.Context, le *logrus.Entry, distSourcePath string, sourcePath string, workingPath string, outAssetsPath string, isRelease bool, ) (web_pkg.WebPkgRefSlice, []string, []web_pkg_vite.ImportMapEntry, error)
BuildDirectWebPkgs builds the BldrExternal web packages directly using Vite.
This is used when web packages are declared but no esbuild/vite sub-manifests exist to build them (e.g. in the saucer flow). Returns the web pkg refs, source files, and import map entries mapping logical specifiers to hashed output paths.
Types ¶
This section is empty.