waveartifacts

package
v0.85.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package waveartifacts defines build artifact naming and directory conventions.

These symbols are consumed by Wave build/dev tooling and are intentionally separate from the end-user runtime `wave` API surface.

Index

Constants

View Source
const (
	// AssetsDirname is the static assets directory segment.
	AssetsDirname = "assets"
	// PublicDirname is the static-public directory segment.
	PublicDirname = "public"
	// PrivateDirname is the static-private directory segment.
	PrivateDirname = "private"
	// InternalDirname is the static-internal directory segment.
	InternalDirname = "internal"
)
View Source
const (
	// CriticalCSSFileName is the internal file containing critical CSS output.
	CriticalCSSFileName = "critical.css"
	// NormalCSSRefFileName points to the current non-critical CSS artifact.
	NormalCSSRefFileName = "normal_css_file_ref.txt"
	// PublicFileMapRefFileName points to the current public file map artifact.
	PublicFileMapRefFileName = "public_file_map_file_ref.txt"
	// PublicFileMapGobFileName is the gob-encoded public file map snapshot.
	PublicFileMapGobFileName = "public_filemap.gob"
	// PrivateFileMapGobFileName is the gob-encoded private file map snapshot.
	PrivateFileMapGobFileName = "private_filemap.gob"
	// BuildOutputLedgerFileName tracks recorded build outputs.
	BuildOutputLedgerFileName = "build_output_ledger.txt"
)
View Source
const (
	// WaveInternalDirname is the private dist directory for Wave-owned internal
	// build artifacts.
	WaveInternalDirname = "wave_owned"
	// ViteManifestFileName is the Vite manifest filename under Wave-owned
	// private artifacts.
	ViteManifestFileName = "vite_manifest.json"
)
View Source
const HashedOutputDirname = "wave_out"

HashedOutputDirname is the static-public directory name holding hashed outputs.

View Source
const HashedOutputPrefix = "wave_out_"

HashedOutputPrefix is the generated filename prefix for hashed artifacts.

View Source
const NohashDirname = "__nohash"

NohashDirname is the static directory segment for assets that should not be content-hashed.

View Source
const PrehashedDirname = "prehashed"

PrehashedDirname is the static directory segment for prehashed assets.

View Source
const PublicFileMapJSONName = "filemap.json"

PublicFileMapJSONName is the generated JSON public filemap name.

Variables

This section is empty.

Functions

func ApplyWaveFileOutputPrefix

func ApplyWaveFileOutputPrefix(fileNameSuffix string) string

ApplyWaveFileOutputPrefix adds Wave's hashed-output filename prefix.

func ApplyWaveOwnedFileOutputPrefix

func ApplyWaveOwnedFileOutputPrefix(fileNameSuffix string) string

ApplyWaveOwnedFileOutputPrefix adds Wave-owned internal-artifact filename prefix.

func ViteManifestFilePath

func ViteManifestFilePath() string

ViteManifestFilePath returns the relative path under static/private for Vite manifest output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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