question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

truffle init should make a .gitignore

See original GitHub issue

It 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:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PeterBorahcommented, Jun 24, 2016

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.

0reactions
tcoultercommented, Jul 11, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found