module

Flock::Cli::Commands::Build

flock build [--release] [--target web|native] — compiles the project to bin/<name>.

Instance methods

binary(config : Config) : String
Source
build_web(release : Bool) : Bool

Web build: delegates to the project's web/build.sh (the wesh WASM toolchain — same script spacei uses). Native-only projects don't have one; tell the user how to add it.

Source
compile(entry : String, bin : String, release : Bool = false) : Bool

Compiles entry to bin, inheriting the compiler's stdout/stderr. Returns success.

Source
entry(config : Config) : String
Source
run(args : Array(String)) : Nil
Source
validate_target(value : String) : String

A normalized --target value ("web" | "native"), or a clean error (exits).

Source