What should I put in a meteor .gitignore file?

后端 未结 15 973
一向
一向 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:29

    This is the .gitignore file I use with Intellij:

      node_modules/
      .meteor/local/*
      .idea/
      npm-debug.log
      packages/*/.npm/
    
    0 讨论(0)
  • 2021-01-30 19:30

    You might want to put any configuration settings files in there if you are pushing to a public repos.

    I store any security sensitive data configuration settings like encryption keys and various passwords for services like smtp, twitter, facebook and others in a config.js and then put that in .gitignore or in the info/exclude file. Stuff I don't want in a public repo.

    Just an additional suggestion to consider for your .gitignore

    0 讨论(0)
  • 2021-01-30 19:30

    According to this article, you should ignore your settings.json, especially if you have environment specific information to include API keys.

    0 讨论(0)
  • 2021-01-30 19:37

    With meteor 1.3 you want to also ignore node_modules. There is no reason to have all of the libraries added to git because you can install them through npm. The node_modules folder most likely is larger than your app (excluding the .meteor/local folder)

    0 讨论(0)
  • 2021-01-30 19:38

    Meteor creates a .gitignore in the .meteor directory by default.

    However, your project's .gitignore should exclude any sensitive data config files and node_modules.

    0 讨论(0)
  • 2021-01-30 19:38

    if you use

    • Intellij IDE ignore .ideafolder
    • Sublime Text ignore sublime-project sublime-workspace

    if you are mac user you can ignore DS_Store

    and if you use npm ignore npm cause if both windows and mac user work on same project, as the same npm version is different for mac and windows it shows error.

    0 讨论(0)
提交回复
热议问题