5 ms·
I don't understand why people need all this. Setting up the boilerplate for a web app manually doesn't take any time at all and only needs to be done once so wh
by Kiro 13y ago
I don't understand why people need all this. Setting up the boilerplate for a web app manually doesn't take any time at all and only needs to be done once so what is there to automate? Am I the only one still doing it the old school way? Please enlighten me.
- cjoh 13y agoYeoman sets up boilerplates for many different kinds of applications, with many different kinds of requirements, and gives you all the tools you need to get started. This can be as convenient as typing in "yo bootstrap" to set up a generic bootstrap site, to "yo phonegap-backbone" to set up a workflow for a backbone and phonegap application. It not only sets up the directory structures for you, it also manages requirements inside of your project from external parties, test environments, and gives you a nice little live-preview setup with grunt automatically. For me, it takes a lot of that project setup time out of the way, so I can get started coding rather quickly.
- ripter 13y agoI keep trying Yeoman every couple of versions but so far, it breaks A LOT. It (used?) to set things up in a way that was hard to move to it another backend like rails. Oh, and it breaks a lot. So I still do most things the old school way. Then I'm done and writing code instead of trying to figure out why Yeoman is broken or the app it generates isn't loading.
- bjourne 13y agoThat has been my experience too. But to be fair, half the breakages was Grunt, half was Yeoman. Then I figured that the tools I use (coffe, jade, stylus, Flask) all support live-reloading anyway so Yeoman was not useful for me. A simple 20 line bash/powershell script was enough.
- nperez 13y agoSame here. I was going to use it for a recent Angular project, but was greeted with such an enormous list of warnings that I wasn't sure if my project was configured properly and didn't have time to investigate. So far I prefer initializing projects with Compass, then doing the rest manually. Open to checking this out again eventually, but I need more straightforward and reliable results.
- lowboy 13y agoGenerators can be used for more than initial project scaffolding. Take the backbone[0] or ember[1] generators for models, views, templates, etc. that automatically generate the scaffolding work of creating dirs and files. To get a the scaffolding for a backbone app, and the pieces of a "blog" MVC module: yo backbone # generates your application base and build workflow yo backbone:model blog yo backbone:collection blog yo backbone:router blog yo backbone:view blog grunt server [0] https://github.com/yeoman/generator-backbone https://github.com/yeoman/generator-backbone [1] https://github.com/yeoman/generator-ember https://github.com/yeoman/generator-ember
- randall 13y agoBower for package management. JS needs a better package manager for browser packages. (NPM is great for Node-style packages, but bower is becoming the defacto standard for distribution of browser packages.)
- andreypopp 13y agoWhy do you think npm can't be used for browser apps? I publish all my browser code on npm and then use it via browserify. That way I started to write a lot more code which works both in browser and in node.
- randall 13y agoSimple: Not all node packages work in the browser. It'd be great if I could just say "ok this package will work for the browser, period." Also, with a module format that the browser can use (ie ECMAscript 6)
- Kiro 13y agoI haven't understood the need for Bower either. If I want say jQuery or Angular I just go to their websites and copy the CDN url. I don't see the problem to be honest.
- biscarch 13y agoWell, I can see it being useful if you're already on the command line or if you have to set up a lot of different projects with different configurations.
- chhuang 13y agoFrom what I understood is: For normal approach: 1. Google CDN jquery 2. Get the CDN link of jQuery 3. Add it to your template For Yeoman/Bower: 1. bower install jquery 2. Get the link/path where bower installed jQuery 3. Add it to your template
- lobster_johnson 13y ago