aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-07-22 21:54:37 +0400
committerOleg <markelog@gmail.com>2013-07-24 18:42:46 +0400
commit40f96b85d3550ed4e89edc25939ca87bbcc2fe69 (patch)
tree8bccb0d21d8af26ce07e03e21b079ab0b05a9874
parent7e7ed7acd080a8678a53706fce428b7d013531c0 (diff)
downloadjquery-40f96b85d3550ed4e89edc25939ca87bbcc2fe69.tar.gz
jquery-40f96b85d3550ed4e89edc25939ca87bbcc2fe69.zip
Install bower packages with npm install
(cherry picked from commit 806b0230cd14916907807ced638aea066465e1d4)
-rw-r--r--README.md14
-rw-r--r--package.json5
2 files changed, 9 insertions, 10 deletions
diff --git a/README.md b/README.md
index efe0acb50..2c5005163 100644
--- a/README.md
+++ b/README.md
@@ -49,23 +49,17 @@ Install the [grunt-cli](http://gruntjs.com/getting-started#installing-the-cli) a
npm install -g grunt-cli bower
```
-Enter the jquery directory and install the Node dependencies, this time *without* specifying a global(-g) install:
-
-```bash
-cd jquery && npm install
-```
-
Make sure you have `grunt` and `bower` installed by testing:
```bash
grunt -version
-bower --version
+bower -version
```
-Install `bower` dependencies:
+Enter the jquery directory and install the Node and Bower dependencies, this time *without* specifying a global(-g) install:
```bash
-bower install
+cd jquery && npm install
```
Then, to get a complete, minified (w/ Uglify.js), linted (w/ JSHint) version of jQuery, type the following:
@@ -90,7 +84,7 @@ For example, an app that only used JSONP for `$.ajax()` and did not need to calc
- **css**: The `.css()` method plus non-animated `.show()`, `.hide()` and `.toggle()`.
- **deprecated**: Methods documented as deprecated but not yet removed; currently only `.andSelf()`.
- **dimensions**: The `.width()` and `.height()` methods, including `inner-` and `outer-` variations.
-- **effects**: The `.animate()` method and its shorthands such as `.slideUp()` or `.hide("slow")`.
+- **effects**: The `.animate()` method and its shorthands such as `.slideUp()` or `.hide("slow")`.
- **event-alias**: All event attaching/triggering shorthands like `.click()` or `.mouseover()`.
- **offset**: The `.offset()`, `.position()`, `.offsetParent()`, `.scrollLeft()`, and `.scrollTop()` methods.
- **wrap**: The `.wrap()`, `.wrapAll()`, `.wrapInner()`, and `.unwrap()` methods.
diff --git a/package.json b/package.json
index 4d260b497..310449388 100644
--- a/package.json
+++ b/package.json
@@ -34,5 +34,10 @@
"archiver": "~0.4.6",
"grunt-jsonlint": "~1.0.0"
},
+
+ "scripts": {
+ "install": "bower install"
+ },
+
"keywords": []
}