I have the folder application/ which I add to the .gitignore. Inside the application/ folder is the folder application/language
application/
.gitignore
application/language
I've found only this actually works.
**/node_modules/* !**/node_modules/keep-dir