Skip to content

Commit

Permalink
feat: moon new create gitignore add .DS_Store (#520)
Browse files Browse the repository at this point in the history
* fix: moon new create gitignore add .DS_Store

* chore: format code

* chore: format code
  • Loading branch information
yjl9903 authored Dec 10, 2024
1 parent 2848796 commit e38248a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/moonbuild/src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ fn common(
// .gitignore
{
let gitignore = target_dir.join(".gitignore");
let content = "target/\n.mooncakes/\n";
let content = ["target/", ".mooncakes/", ".DS_Store"];
let content = content.join("\n") + "\n";
let mut file = std::fs::File::create(gitignore).unwrap();
file.write_all(content.as_bytes()).unwrap();
}
Expand Down

0 comments on commit e38248a

Please sign in to comment.