Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yeoman Backbone scaffold is 120MB and 11K files?

Using this generator to scaffold a backbone app gives me insanely big project of 11000 files. Probably because some of the generators are included in the project itself.

Is there an option to keep them generators global? The way Yeoman v0.9.6 was built? Or is it a bad practice?

Enlighten me would ya?

--using yeoman 1 beta 5

like image 938
Daniel Birowsky Popeski Avatar asked May 16 '13 22:05

Daniel Birowsky Popeski


1 Answers

You can install the generators globally:

npm install -g generator-mocha generator-backbone

But your dev dependencies for bower and npm will be added to your projects local file structure.

  • node: <project_root>/node_modules
  • bower: <project_root>/app/bower_components

They do take up a bunch of space but at least the scaffolded .gitignore filters them out of your commits =)

like image 179
Scott Puleo Avatar answered Oct 30 '22 01:10

Scott Puleo