Skip to content

Commit

Permalink
Merge pull request #581 from beemdvp/main
Browse files Browse the repository at this point in the history
feat: add default .gitignore
  • Loading branch information
iamyulong authored Nov 7, 2022
2 parents 3eb5525 + 7c0e9db commit 90ff067
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/template/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
6 changes: 6 additions & 0 deletions simulator/src/scrypto/cmd_new_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ impl NewPackage {
)
.map_err(Error::IOError)?;

fs::write(
child_of(&path, ".gitignore"),
include_str!("../../../assets/template/.gitignore"),
)
.map_err(Error::IOError)?;

fs::write(
child_of(&child_of(&path, "src"), "lib.rs"),
include_str!("../../../assets/template/src/lib.rs"),
Expand Down

0 comments on commit 90ff067

Please sign in to comment.