From 84afe19139d6b18a04c7c4b9a774fa084a786b6a Mon Sep 17 00:00:00 2001 From: Stephen Hurwitz Date: Wed, 19 Mar 2014 15:16:07 -0700 Subject: [PATCH] Added instructions for downloading with Bower jQuery is distributed as a Bower package but this is not docuemnted on the current download pate. This commit adds instructions for downloading the default jQuery release as well as instructions for using Bower to install without including any additional files or directories. Related to jquery/jquery#1542 --- pages/download.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/download.md b/pages/download.md index 6259489..8cb3edb 100644 --- a/pages/download.md +++ b/pages/download.md @@ -47,6 +47,18 @@ Please read the [2.0 release notes](http://blog.jquery.com/2013/04/18/jquery-2-0 [jQuery 2.1.0 release notes](http://blog.jquery.com/?p=3344) +## Downloading jQuery using Bower +jQuery is registered as a package with [Bower](http://bower.io). You can install the latest version of jQuery with the command: +``` +bower install jquery +``` +This will install jQuery to Bower's install directory, the default being `bower_components`. Within `bower_components/jquery/dist/` you will find an uncompressed release, a compressed release, and a map file. + +The jQuery Bower package contains additional files besides the default distribution. In most cases you can ignore these files, however if you wish to download the default release on it's own you can use Bower to install jQuery from one of the above urls instead of the registered package. For example, if you wish to install just the compressed jQuery 2.1.0, you can install just that file with the following command: +``` +bower install http://code.jquery.com/jquery-2.1.0.min.js +``` + ## jQuery Migrate Plugin We have created the [jQuery Migrate plugin](http://github.com/jquery/jquery-migrate/#readme)