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.
Bower 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.)
Yeoman 1.0 Released
51–58 of 58 posts
Re: Yeoman 1.0 Released
#52I 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.
Bower 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.)
Re: Yeoman 1.0 Released
#53Re: Yeoman 1.0 Released
#54Re: Yeoman 1.0 Released
#55Earlier quoted context omitted.
Bower 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.)
I 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.
For example, app A depends on library B which depends on library C. If C is jQuery and those are all the dependencies you have, it's fine; but when a project grows a little larger, you do want a proper system.
This is not an uncommon thing; modularizing an app or library into many small, independent parts is simply good practice.
Concrete example: Our company has a library which is currently monolithic and too big for its own repo, so it needs to be broken up into many different modules.
For this we have to have a dependency system because every module in the library needs to be able to say that it needs another module to run.
Plus, if you are developing an app that uses (a bunch of modules from) the library, you want to be able to work on the module code concurrently. Having to minify/package library code and copy it into the app every time you make a change is very inconvenient.
Plus, eventually you need to bundle a single file, eg. mylib.min.js, that combine all the modules. Also a chore without a dependency system. Might be fine for just isolated one case, gets stupidly annoying for the next project, and the next, and so on.
What I like about Browserify is that you just require libraries in your code where you need them, and that way all dependencies are expressed in code; whereas Bower has explicit metadata, separate from the code, which may get out of sync over time.
Re: Yeoman 1.0 Released
#56Earlier quoted context omitted.
I 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.
Well, 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.
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
Re: Yeoman 1.0 Released
#57 $ yo webapp
$ npm ls | wc -l
240Re: Yeoman 1.0 Released
#58Earlier quoted context omitted.
Bower 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.)
Why 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.