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)?
Answer
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 )
No comments:
Post a Comment