Skip to content

Commit bc4e976

Browse files
committed
Update README for bower usage
1 parent b13d822 commit bc4e976

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,29 @@ First, clone a copy of the main jQuery git repo by running:
4343
git clone git://github.com/jquery/jquery.git
4444
```
4545

46-
Install the grunt-cli package so that you will have the correct version of grunt available from any project that needs it. This should be done as a global install:
46+
Install the [grunt-cli](http://gruntjs.com/getting-started#installing-the-cli) and [bower](http://bower.io/) packages if you haven't before. These should be done as global installs:
4747

4848
```bash
49-
npm install -g grunt-cli
49+
npm install -g grunt-cli bower
5050
```
5151

52-
Enter the jquery directory and install the Node dependencies, this time *without* specifying a global install:
52+
Enter the jquery directory and install the Node dependencies, this time *without* specifying a global(-g) install:
5353

5454
```bash
5555
cd jquery && npm install
5656
```
5757

58-
Make sure you have `grunt` installed by testing:
58+
Make sure you have `grunt` and `bower` installed by testing:
5959

6060
```bash
6161
grunt -version
62+
bower --version
63+
```
64+
65+
Install `bower` dependencies:
66+
67+
```bash
68+
bower install
6269
```
6370

6471
Then, to get a complete, minified (w/ Uglify.js), linted (w/ JSHint) version of jQuery, type the following:
@@ -128,7 +135,13 @@ For questions or requests regarding custom builds, please start a thread on the
128135
Running the Unit Tests
129136
--------------------------------------
130137

131-
Start grunt to auto-build jQuery as you work:
138+
Make sure you have the necessary dependencies:
139+
140+
```bash
141+
bower install
142+
```
143+
144+
Start `grunt watch` to auto-build jQuery as you work:
132145

133146
```bash
134147
cd jquery && grunt watch

0 commit comments

Comments
 (0)