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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With