class Creestal::Core::Builder

Defined in:

core/builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : Core::Context, site : Site | Nil = nil) #

[View source]

Instance Method Detail

def run : Site #

Full build — cleans the output directory then delegates entirely to Site. Returns the populated Site so callers can pass it into run_incremental.


[View source]
def run_incremental(changed_files : Array(String)) : Site #

Incremental build — syncs every file in the batch and returns the live Site so the caller (serve) can pass it back on the next change.


[View source]