Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use angular-seed or yeoman for a new Angular application?

I'm a little confused about which way I should create a new AngularJS application. As far as I can tell there seems to be a couple of ways to do it, either using angular-seed: https://github.com/angular/angular-seed

or

yeoman - http://www.sitepoint.com/kickstart-your-angularjs-development-with-yeoman-grunt-and-bower/

What I can't find is any resources on why you would choose one method over the other. The resulting directory structures look quite different to me. Is it correct to say that one of the main differences is that angular-seed doesn't use Bower or Grunt out of the box, whereas a yeoman generated application does?

If I used angular-seed and wanted to add grunt to it then I am guessing this would be a bit of a manual process?

like image 288
jcm Avatar asked Mar 04 '14 06:03

jcm


People also ask

What is yeoman in angular?

Yeoman is a collection of three tools - called Yo, Grunt, and Bower - that allow developers to concentrate on building the functionality of an application, rather than working to build its infrastructure.

What is angular seed?

angular-seed is an application skeleton for a typical AngularJS web app. By using it, we can quickly bootstrap our angular webapp projects and dev environment while seed app doesn't do much, and just demonstrates how to wire two controllers and views together.


1 Answers

Definitely use Yeoman. It gives you more than just a project structure out of the box (it has tasks for tests and building all ready to go). However, it's debatable which yeoman generator to use. It really depends on the project. I would suggest one of these:

Simple Project: https://github.com/yeoman/generator-angular

Large Project: https://github.com/cgross/generator-cg-angular

like image 69
Andrew Keym Avatar answered Sep 23 '22 13:09

Andrew Keym