truffle init should make a .gitignore
See original GitHub issueIt would be nice. I always need to add one for every new project.
proposed content:
# Logs
logs
*.log
# Directories used by tools like mocha & istanbul
coverage
shippable
# Dependency directory
node_modules
# Generated files
config/development/contracts.json
config/development/*.sol.js
config/test/contracts.json
build
dist
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
what is a standard .gitignore for truffle?
I think the answer is 'yes' because one would want to remember what the format of the contracts that have been deployed, but...
Read more >Truffle init not creating Migration.sol file - Stack Overflow
At last I have got the solution of it. In this case, no need to use truffle init command. You just simply need...
Read more >Create Useful .gitignore Files For Your Project - Toptal
Create useful .gitignore files for your project by selecting from 565 Operating System, IDE, and Programming Language .gitignore templates.
Read more >Deploy with Truffle - Palm Network
This guide walks you through using Truffle migrations to deploy an NFT smart contract to the Palm network. - Palm Network.
Read more >What is Gitignore and How to Add it to Your Repo
This will create the file ~/.gitignore_global . Now you can edit that file the same way as a local .gitignore file. All of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would appreciate a way to do this. First thing I do after
truffle init
is make this .gitignore:environments/*/contracts/**
But I can never remember exactly what it should be, so I have to go find it in another repo. Would be nicer to just go,
truffle init --with-gitignore
.We’ve now launch Truffle Boxes as of a week ago. This will be dependent on the individual boxes. Soon
truffle init
will be converted to its own box. Cheers! Please file a new issue if this continues to be a problem.