What should I put in a meteor .gitignore file?

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

    Here is what I use with Webstorm and Meteor 1.4 deployed with Mupx.

    # Meteor files to ignore now handled by .ignore file within .Meteor folder automatically
    
    # settings file to ignore to protect API keys
    settings.json
    
    # MUP / MUPX file to ignore to protect server passwords and sensitive info.
    mup.json
    
    # npm package files to ignore
    node?modules/
    npm-debug.log
    
    # Webstorm IDE files to ignore
    .idea/*
    
    # Typing type definition files to ignore. Webstorm uses type definitions for autocomplete even without typescript
    typings/*
    
    0 讨论(0)
  • 2021-01-30 19:56
    ### MeteorJS ###
    # default meteor build and local packages
    .meteor/local
    
    # meteor settings file
    settings.json
    
    # meteor build output files
    *.tar.gz
    
    # general swp files from vim
    *.swp
    
    # End of https://www.gitignore.io/api/meteorjs
    
    0 讨论(0)
  • 2021-01-30 19:56

    .meteor/local is the only thing you want missing from version control.

    Meteor automatically generates a .gitignore file that would fit your needs.

    If it's a public repository you'll likely want to include "settings-development.json" or any other JSON files containing information you don't want to disclose to the public such as AWS API keys.

    However Bitbucket and some others provides free private repositories which should fit your needs.

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