Ionic start .gitignore


#1

ionic start will create a .gitignore that ignores node_modules. Unfortunately, shelljs is a requirement for Cordova, so if I add the output of ionic start to my repo and then clone it, it gets broken.


#2

How about adding “shellsjs” to the “package.json” and then using npm install?


#3

It will still make a clean git clone fail until npm install is executed. Check out this article:

http://www.futurealoof.com/posts/nodemodules-in-git.html


#4

Very interesting link. I’ve been of the camp “I don’t want node_modules” in my source tree. Now, I realize I was wrong.

I will discuss this with devs. Thanks for bringing it up.


#5

Have opened issue # 24 : https://github.com/driftyco/ionic-cli/issues/24

Please put all discussion in that Issue.