Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cw721-template #120

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Add .gitignore, exclude files from code gen
JakeHartnell committed Apr 27, 2023
commit eb3aea28ef203469de071171db430ccf0e481352
16 changes: 16 additions & 0 deletions contracts/cw721-template/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Build results
/target
/schema

# Cargo+Git helper file (https://github.com/rust-lang/cargo/blob/0.44.1/src/cargo/sources/git/utils.rs#L320-L327)
.cargo-ok

# Text file backups
**/*.rs.bk

# macOS
.DS_Store

# IDEs
*.iml
.idea
7 changes: 7 additions & 0 deletions contracts/cw721-template/cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[template]
# Files listed here will not be processed by the template engine when a project is generated.
# This is needed when files contains curly brackets as in `v4-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}`.
# The files will be copied 1:1 to the target project. To avoid shipping them completely add them to `.genignore`.
exclude = ["test_generate.sh", "cargo-generate.toml"]


[placeholders.minimal]
type = "bool"
prompt = """The full template includes more example code on how to extend a basic cw721 contract.