Ionic start .gitignore

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.

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

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

1 Like

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.

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

Please put all discussion in that Issue.