You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-11
Original file line number
Diff line number
Diff line change
@@ -45,29 +45,31 @@ First, clone a copy of the main jQuery git repo by running:
45
45
git clone git://github.com/jquery/jquery.git
46
46
```
47
47
48
-
Enter the directory and install the Node dependencies:
48
+
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:
49
49
50
50
```bash
51
-
cd jquery &&npm install
51
+
npm install -g grunt-cli
52
52
```
53
53
54
+
Enter the jquery directory and install the Node dependencies, this time *without* specifying a global install:
55
+
56
+
```bash
57
+
cd jquery && npm install
58
+
```
54
59
55
60
Make sure you have `grunt` installed by testing:
56
61
57
62
```bash
58
63
grunt -version
59
64
```
60
65
61
-
62
-
63
66
Then, to get a complete, minified (w/ Uglify.js), linted (w/ JSHint) version of jQuery, type the following:
64
67
65
68
```bash
66
69
grunt
67
70
```
68
71
69
-
70
-
The built version of jQuery will be put in the `dist/` subdirectory.
72
+
The built version of jQuery will be put in the `dist/` subdirectory, along with the minified copy and associated map file.
71
73
72
74
73
75
### Modules (new in 1.8)
@@ -165,7 +167,7 @@ Run the unit tests with a local server that supports PHP. No database is require
165
167
Building to a different directory
166
168
---------------------------------
167
169
168
-
If you want to build jQuery to a directory that is different from the default location:
170
+
To copy the built jQuery files from `/dist` to another directory:
169
171
170
172
```bash
171
173
grunt && grunt dist:/path/to/special/location/
@@ -177,7 +179,7 @@ With this example, the output files would be:
177
179
/path/to/special/location/jquery.min.js
178
180
```
179
181
180
-
If you want to add a permanent copy destination, create a file in `dist/` called ".destination.json". Inside the file, paste and customize the following:
182
+
To add a permanent copy destination, create a file in `dist/` called ".destination.json". Inside the file, paste and customize the following:
181
183
182
184
```json
183
185
@@ -186,7 +188,6 @@ If you want to add a permanent copy destination, create a file in `dist/` called
186
188
}
187
189
```
188
190
189
-
190
191
Additionally, both methods can be combined.
191
192
192
193
@@ -204,8 +205,8 @@ Note: This task will also be run any time the default `grunt` command is used.
204
205
205
206
206
207
207
-
Git for dummies
208
-
---------------
208
+
Essential Git
209
+
-------------
209
210
210
211
As the source code is handled by the version control system Git, it's useful to know some features used.
0 commit comments