What should I put in a meteor .gitignore file?

后端 未结 15 1000
一向
一向 2021-01-30 19:14

I have a new meteor project. I\'m guessing the .meteor dir has a combination of configuration files (needed) and temporary files (not needed).

So what\'s i

15条回答
  •  逝去的感伤
    2021-01-30 19:42

    1. gitignore is used to ignore all the unnecessary burden over the git server and your fetching all the time.
    2. So the best possible stuff to put inside the gitignore is packagable entity. Now, this includes the meteor downloadable packages, so, you should just add ".meteor/local" inside gitignore.
    3. When you add it to gitignore configuration, it reduces the size of project to n times smaller as it would be with the packages.
    4. If you cut-paste the entire project now to different location or fetch the repository without .meteor/local folder and start the project using meteor command, the meteor first downloads the required packages and then starts the server.

提交回复
热议问题