Packages
Search packages... ⌘K
Go Package
build
Build orchestrator — Go/Node/Docker build commands with progress reporting
Go Ready SI
Multi-Platform Build
$ sbx build --platform go --dir projects/sbx/packages/core/go
[build:go] target: bin/sbx
[build:go] CGO_ENABLED=0 GOOS=linux GOARCH=amd64
[build:go] compiling 47 packages...
[build:go] bin/sbx — 18.3 MB — 4.2s
$ sbx build --platform node --dir projects/sbx/apps/sbx/svelte
[build:node] adapter: node
[build:node] vite build...
[build:node] 142 modules transformed
[build:node] build/ — 2.1 MB — 6.8s
About
Orchestrates build commands across Go, Node, and Docker platforms. Detects the project type, runs the appropriate build tool, captures output for progress reporting, and returns structured build results.
Public API
| Name | Kind | Signature |
|---|---|---|
| Builder | type | type Builder struct |
| NewBuilder | func | func NewBuilder(cfg Config) *Builder |
| BuildGo | func | func (b *Builder) BuildGo(ctx context.Context, dir string, opts ...GoOption) (*BuildResult, error) |
| BuildNode | func | func (b *Builder) BuildNode(ctx context.Context, dir string, opts ...NodeOption) (*BuildResult, error) |
| BuildDocker | func | func (b *Builder) BuildDocker(ctx context.Context, service string, opts ...DockerOption) (*BuildResult, error) |
Dependencies
Imports (2)
external Go Ready
External process runner — exec.Command wrapper with timeout, output capture, error handling
execprocess-runnertimeoutoutput-capture
5 exports 7 deps
config Go Ready
YAML configuration reader — typed config loading with environment overlay
yamlconfigurationenvironmenttyped-config
4 exports 4 deps
Related Packages
Source
github.com/shredbx/sbx-core/pkg/build
build-systemmulti-platformdockerprogress