From 49e9e98043aeb1ca376db2c3d883453d7decded7 Mon Sep 17 00:00:00 2001 From: Julian Motz Date: Wed, 19 Oct 2016 18:44:34 +0200 Subject: [PATCH 1/2] Added section about installation using Yarn --- pages/download.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/download.md b/pages/download.md index d16ccc5..8fc2758 100644 --- a/pages/download.md +++ b/pages/download.md @@ -54,6 +54,16 @@ The jQuery Bower package contains additional files besides the default distribut bower install https://code.jquery.com/jquery-3.1.1.min.js ``` + +## Downloading jQuery using Yarn +jQuery can also be downloaded using [Yarn](https://github.com/yarnpkg/yarn) – an alternative CLI component to npm and Bower: + +``` +yarn add jquery +``` + +Like when installing it [using npm](#downloading-jquery-using-npm) you'll find production-ready files within the `./node_modules/jquery/dist/` folder. + ## jQuery Migrate Plugin We have created the [jQuery Migrate plugin](https://github.com/jquery/jquery-migrate/#readme) From 81c96e8284b4e079419eee5ad00d754ea65d0beb Mon Sep 17 00:00:00 2001 From: Julian Motz Date: Wed, 19 Oct 2016 19:46:51 +0200 Subject: [PATCH 2/2] Merged npm and Yarn sections --- pages/download.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pages/download.md b/pages/download.md index 8fc2758..257f35f 100644 --- a/pages/download.md +++ b/pages/download.md @@ -36,10 +36,14 @@ You can also use the slim version: [jQuery 3.1.1 release notes](http://blog.jquery.com/2016/09/22/jquery-3-1-1-released/) ## Downloading jQuery using npm -jQuery is registered as [a package](https://www.npmjs.com/package/jquery) on [npm](https://www.npmjs.com/). You can install the latest version of jQuery with the command: +jQuery is registered as [a package](https://www.npmjs.com/package/jquery) on [npm](https://www.npmjs.com/). You can install the latest version of jQuery with the npm CLI command: ``` npm install jquery ``` +As an alternative you can use the [Yarn](https://github.com/yarnpkg/yarn) CLI command: +``` +yarn add jquery +``` This will install jQuery in the `node_modules` directory. Within `node_modules/jquery/dist/` you will find an uncompressed release, a compressed release, and a map file. ## Downloading jQuery using Bower @@ -54,16 +58,6 @@ The jQuery Bower package contains additional files besides the default distribut bower install https://code.jquery.com/jquery-3.1.1.min.js ``` - -## Downloading jQuery using Yarn -jQuery can also be downloaded using [Yarn](https://github.com/yarnpkg/yarn) – an alternative CLI component to npm and Bower: - -``` -yarn add jquery -``` - -Like when installing it [using npm](#downloading-jquery-using-npm) you'll find production-ready files within the `./node_modules/jquery/dist/` folder. - ## jQuery Migrate Plugin We have created the [jQuery Migrate plugin](https://github.com/jquery/jquery-migrate/#readme)