1

I'm confused around all of the different tools such as Grunt, Bower, NPM, Gulp, etc...

What tool/package manager can I use to include/manage JQuery (and other JS libraries)?

karns
  • 5,391
  • 8
  • 35
  • 57
  • You can get good information on these tools by googling each of them and what they achieve, if you are still unclear downloading your files and keeping them as a downloaded is fine if you are still learning web development. – Daniel Tate Jun 18 '15 at 02:23

1 Answers1

1

You can use bower to manage your front end libraries.

NPM is for installing packages to your backend, Bower is for installing libraries to your front end.

You will probably want to add the bower_components folder to your .gitignore (or equivalent if not using git)

Anyone who uses your repo can run bower install to get the front end libraries, the listing of libraries is kept in bower.json. For a good list of Bower benefits see https://softwareengineering.stackexchange.com/questions/224828/why-should-i-use-bower/224832#224832?newreg=4db37e92ec744292bed67038a680cada

Grunt is a great tool for managing tasks that you have to do, in say your deployment process. A grunt task could include minifying your code, here is a good example grunt file http://gruntjs.com/sample-gruntfile

In terms of overall comparisons here's a better write up than I could do Difference between Grunt, NPM and Bower ( package.json vs bower.json )

Community
  • 1
  • 1