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 in your .gitignore
?
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 in your .gitignore
?
Meteor creates a
.gitignore
in the.meteor
directory by default.However, your project's
.gitignore
should exclude any sensitive data config files andnode_modules
.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
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. Thenode_modules
folder most likely is larger than your app (excluding the.meteor/local
folder)The only directory you want excluded from version control is
.meteor/local
.Meteor automatically creates the right
.meteor
and.meteor/.gitignore
, though -- you shouldn't need to do anything.if you use
.idea
foldersublime-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.