How can I manage my Javascript libraries in Grunt? Using Bower or NPM?
<p>I just learn how to use Grunt and I find it awesome; I just have one concern about Javascript libraries, the workflow I learned was to search for each library on the web and then place them in a js/libs folder, then combine ALL the JS files in a single one using Uglify.js but I don't think this is the most practical way to do this. I tried using Bower to manage this but then all the libraries are installed in bower_components so there's no point in having a js/libs workflow in Grunt because I would have to install the libraries using Bower and then import them in my html. Which workflow is the most common to manage this in a project? Can't I use npm to install javascript libraries such as jQuery, underscore or Require.js and use them in my Grunt workflow instead of google them everytime I need them? Can't I use bower to install the libraries in my js/libs folders instead of creating a whole bower_components folders tree?</p>