bahmutov / pre-git

Automatically install pre-commit / pre-push hooks in your git repo
168 stars 22 forks source link

node_modules in subfolder #84

Closed tamascsaba closed 8 years ago

tamascsaba commented 8 years ago

Cannot find node_modules folder, please run 'npm install' first .git/hooks/pre-commit: 6: exit: Illegal number: -1

bahmutov commented 8 years ago

What's the project's structure in your case?

tamascsaba commented 8 years ago

package.json has own pre-git config :) (but all same yet)

.
|____.git
|____modules
| |____foo
| | |____package.json
| |____bar
| | |____src
| | |____package.json
bahmutov commented 8 years ago

ohhhh, can I ask why people do this? Why not separate modules?

tamascsaba commented 8 years ago

because it is really small modules and easiest to version control

bahmutov commented 8 years ago

fair point, but then the question is where do you install pre-git ?

tamascsaba commented 8 years ago

Nice idea :) i install create a package.json in base folder, that only dependency is pre-git.

Thanks :+1: