Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using two yeoman generators?

Is it possible to use two generators on one project with yeoman?

For example: I want to use the angular-generator but also want to use another generator, whether it be custom or one of the bootstrap generators.

I know you can add dependencies through bower, but that doesn't add anything to my workflow(e.g. compiling less), does it?

like image 346
Kirill Fuchs Avatar asked Dec 04 '13 01:12

Kirill Fuchs


People also ask

Is Yeoman still used?

Yeoman features a clear API, a generator's generator for getting started, and serious ease-of-use as a Node. JS module. Second, maintainability. Yeoman is being used by thousands of people worldwide and it's based on the Backbone.


1 Answers

Yes, it is not only possible, but common. Example: When you use JS-MV* generator in the project (generator-angular for instance) you will probably use generators responsible for other stuff, such as generator-travis-ci, generator-heroku.

Using two generators dedicated to two different JS-MV* frameworks ? NO. It makes no sense.
Yo can do it physically, for instance running generator-ember and generator-angular consequently in the same dir will result in angular's one trying to overwrite files generated previously by generator-ember.

As for the second question changing the workflow is basically changing the Gruntfile. It can be done by generators or by you, manually.

like image 151
vucalur Avatar answered Sep 28 '22 08:09

vucalur