Documentation
¶
Overview ¶
Package wasmbuild builds the tailcat web WebAssembly binary and the distribution directory of static files that servers of the web app need. It is shared by cmd/tailcat-web, cmd/tailcat-webdist, and the browser integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dist ¶
Dist builds the complete set of static files a server needs to serve the web app: main.wasm (compiled from the Go package in webDir, with precompressed main.wasm.zst and main.wasm.gz variants), the toolchain's wasm_exec.js, and index.html and app.js copied from webDir. It writes them all to outDir, creating it if needed.
func Tags ¶
func Tags() string
Tags returns the comma-joined -tags value for the wasm build, sorted so the same source tree always produces the same wasm bytes.
func WasmExecJS ¶
WasmExecJS returns the path to the Go toolchain's wasm_exec.js, the JavaScript support file needed to run Go wasm binaries.
Types ¶
This section is empty.