[feature]
name = "smart-build"
version = "0.1.0"
source = "p-jpl-website"
description = "Incremental build system with intelligent caching and performance optimization"
requires = []

[dependencies]
workspace = ["notify", "lru", "futures", "walkdir", "ignore"]
external = ["blake3 = '1.5'", "rayon = '1.10'"]

[[environment.variables]]
name = "SMART_BUILD_CACHE_DIR"
default = ".cache/smart-build"
required = false

[[environment.variables]]
name = "SMART_BUILD_PARALLEL_JOBS"
default = "auto"
required = false

[[environment.variables]]
name = "SMART_BUILD_MAX_CACHE_SIZE"
default = "1GB"
required = false

[configuration]
files = [
    { path = "config/smart-build.toml", template = "templates/smart-build.config.toml" }
]

[resources]
public = [
    { from = "assets/build-progress.js", to = "public/js/build-progress.js" }
]

[[scripts]]
from = "scripts/smart-build-clean.nu"
to = "scripts/build/clean.nu"

[[scripts]]
from = "scripts/smart-build-stats.nu"
to = "scripts/build/stats.nu"

[just]
module = "just/smart-build.just"