Yeoman Backbone scaffold - 120 MB and 11 KB files?

Using this generator to create a basic application gives me an insanely large project of 11,000 files. Probably because some of the generators are included in the project itself.

Is it possible to keep generators global? How was Yeoman v0.9.6 built? Or is it a bad practice?

Enlighten me, me?

- using yoman 1 beta 5

+6
source share
1 answer

You can install generators globally:

npm install -g generator-mocha generator-backbone 

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

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

They take up a ton of space, but at least scaffolding .gitignore filters them out of your commits =)

+4
source

Source: https://habr.com/ru/post/945206/


All Articles