mhartington / ama

Ask me anything!
5 stars 1 forks source link

Proper .gitignore for Ionic #4

Closed peterpan666 closed 8 years ago

peterpan666 commented 8 years ago

Hi!

First of all, thanks for all the work at Ionic!

What rules are you using for your .gitignore in Ionic? Mine looks like this but not sure if I forgot stuff...

node_modules/
platforms/
plugins/

resources/*/*
mhartington commented 8 years ago

It really depends on what you need

Ignoring node_modules, paltform, and plugins are a good start. You could even ignore the internal www/lib/ and just reinstall every time you clone the repo.

I wouldn't ignore the resources, as those could be useful for others on your team.

peterpan666 commented 8 years ago

Thanks for the answer!

I thought about www/lib/ the problem is that other team members will update it by reinstalling it since ionic-cli doesn't care about the current version installed, it just update it to the latest, am I right?

And for the resources, this rule exclude only the generated files for iOS or other platforms, so I was thinking that the team could just regenerate them when needed...

I'm not really sure about all of this, tell me if I'm wrong, I try to learn ;)

Thanks again!