mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 21:19:35 +00:00
feat: add .dcr/ build facts and canonical artifact paths for IDE integrations
This commit is contained in:
@@ -24,8 +24,11 @@ pub fn init(path: &Path) -> Result<(), String> {
|
||||
|
||||
let gitignore_path = path.join(".gitignore");
|
||||
if !gitignore_path.exists() {
|
||||
fs::write(&gitignore_path, "/target\n")
|
||||
fs::write(&gitignore_path, "/target\n.dcr/\n")
|
||||
.map_err(|e| format!("failed to create .gitignore: {}", e))?;
|
||||
} else {
|
||||
crate::utils::fs::ensure_gitignore_has_dcr(path)
|
||||
.map_err(|e| format!("failed to update .gitignore: {}", e))?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user