use std::path::Path;
#[derive(Debug, Clone)]
pub struct CompiledArtifact {
pub root_id: u64,
pub view: super::patch_engine::SerializedView,
}
pub struct BuildPipeline;
impl BuildPipeline {
pub fn new() -> Self {
Self
}
pub fn compile_project<P: AsRef<Path>>(_project_path: P) -> CompiledArtifact {
CompiledArtifact {
root_id: 0,
view: super::patch_engine::SerializedView {
view_type: "Placeholder".to_string(),
props: serde_json::json!({}),
children: Vec::new(),
},
}
}
pub fn watch_changes<P: AsRef<Path>, F>(_project_path: P, _callback: F)
where
F: FnMut(CompiledArtifact) + Send + 'static,
{
log::warn!("File watching not yet implemented");
}
}