Documentation
¶
Index ¶
- Constants
- Variables
- func BuildDistSourcesFSCursor() *unixfs_iofs.FSCursor
- func BuildDistSourcesFSHandle(ctx context.Context, le *logrus.Entry) *unixfs.FSHandle
- func ResolveDistSourcePath(distSourcePath string, elems ...string) string
- func SyncDistSources(ctx context.Context, le *logrus.Entry, conf DistSourceSyncConfig) error
- type DistSourceSyncConfig
Constants ¶
const DistGoMod = "github.com/s4wave/spacewave/bldr-dist"
DistGoMod is the Go module path used for the checked-out Bldr dist sources.
Variables ¶
var DistSources embed.FS
DistSources contains the sources for the web entrypoint(s) and sdk(s). Includes entrypoints, runtime workers, shared workers, and SDK modules. These files must be checked out to .bldr/src so TypeScript + IDEs can see them.
TODO: go.mod go.sum bun.lock tsconfig.json ?
Functions ¶
func BuildDistSourcesFSCursor ¶
func BuildDistSourcesFSCursor() *unixfs_iofs.FSCursor
BuildDistSourcesFSCursor builds a *fs.Cursor for the DistSources.
func BuildDistSourcesFSHandle ¶
BuildDistSourcesFSHandle builds a unixfs FSHandle for the DistSources.
func ResolveDistSourcePath ¶
ResolveDistSourcePath resolves a dist source file from either the repo root or the bldr subdir.
func SyncDistSources ¶ added in v0.51.7
SyncDistSources syncs embedded Bldr dist sources into DistRoot and materializes the vendor tree used by non-local @go/* TypeScript imports.
Types ¶
type DistSourceSyncConfig ¶ added in v0.51.7
type DistSourceSyncConfig struct {
// RepoRoot is the project root containing the live go.mod and go.sum.
RepoRoot string
// DistRoot is the output directory used as BLDR_DIST_ROOT.
DistRoot string
// BldrVersion is the module version to require when BldrSrcPath is empty.
BldrVersion string
// BldrSum is the module checksum for BldrVersion.
BldrSum string
// BldrSrcPath is an optional replacement path for the source module.
BldrSrcPath string
}
DistSourceSyncConfig configures Bldr dist-source materialization.
Directories
¶
| Path | Synopsis |
|---|---|
|
cli
|
|
|
cmd
|
|
|
bldr
command
|
|
|
desktop
|
|
|
web/entrypoint
command
|
|
|
e2e
|
|
|
entrypoint
|
|
|
cli
Package example_cli provides example CLI commands for the bldr demo.
|
Package example_cli provides example CLI commands for the bldr demo. |
|
exp
|
|
|
autobun/main
command
|
|
|
compiler/go/dev-wrapper
command
|
|
|
host/logs
Package plugin_host_logs contains structured plugin log schema types.
|
Package plugin_host_logs contains structured plugin log schema types. |
|
host/wazero-quickjs/gen
command
|
|
|
prototypes
|
|
|
build-web-pkg
command
|
|
|
detect-parent-exit
command
|
|
|
determine-pkg-path
command
|
|
|
esbuild-pull-3413
command
|
|
|
go-js-async-iterable
command
|
|
|
go-js-packet-stream
command
|
|
|
http-reader-at
command
|
|
|
js-wazero-quickjs
command
|
|
|
js-wazero-quickjs/concio
command
|
|
|
js-wazero-quickjs/nonblockio
command
|
|
|
js-wazero-quickjs/repl
command
|
|
|
sync-optimization
command
test-gomod-compare: Tests whether comparing the generated go.mod with the existing file on disk can be used to skip go mod tidy + vendor.
|
test-gomod-compare: Tests whether comparing the generated go.mod with the existing file on disk can be used to skip go mod tidy + vendor. |
|
wasi
command
|
|
|
wasi/run-wazero-go
command
|
|
|
sdk
|
|
|
util
|
|
|
logfile
Package logfile provides file-based logging for bldr via logrus hooks.
|
Package logfile provides file-based logging for bldr via logrus hooks. |
|
tailwriter
Package tailwriter provides an io.Writer that forwards all writes to an inner writer while keeping the last N complete lines in a ring buffer.
|
Package tailwriter provides an io.Writer that forwards all writes to an inner writer while keeping the last N complete lines in a ring buffer. |
|
wazerofs
Package wazerofs provides a simplified filesystem adapter that bridges UnixFS with the Wazero WebAssembly runtime's filesystem interface.
|
Package wazerofs provides a simplified filesystem adapter that bridges UnixFS with the Wazero WebAssembly runtime's filesystem interface. |
|
package bldr_values contains value types that are injected to the target binary.
|
package bldr_values contains value types that are injected to the target binary. |
