@@ -11,21 +11,10 @@ In the spirit of open source software development, jQuery always encourages comm
3.[Tips For Bug Patching](http://docs.jquery.com/Tips_for_jQuery_Bug_Patching)
Running the Unit Tests
--------------------------------------
Run the unit tests with a local server that supports PHP. No database is required. Pre-configured php local servers are available for Windows and Mac. Here are some options:
In order to build jQuery, you need to have GNU make 3.8 or later, Node.js 0.4.12 or later, and git 1.7 or later.
In order to build jQuery, you need to have GNU make 3.8 or later, Node.js/npm latest, and git 1.7 or later.
(Earlier versions might work OK, but are not tested.)
Windows users have two options:
...
...
@@ -50,32 +39,66 @@ if you swing that way. Easy-peasy.
How to build your own jQuery
----------------------------
First, clone a copy of the main jQuery git repo by running `git clone git://github.com/jquery/jquery.git`.
First, clone a copy of the main jQuery git repo by running:
`git clone git://github.com/jquery/jquery.git`
Enter the directory and install the node dependencies:
`cd jquery && npm install`
Make sure you have `grunt` installed by testing:
`grunt -version`
Then, to get a complete, minified (w/ Ugligy.js), linted (w/ JSHint) version of jQuery, type the following:
`grunt`
Then, to get a complete, minified, jslinted version of jQuery, simply `cd` to the `jquery` directory and type
`make`. If you don't have Node installed and/or want to make a basic, uncompressed, unlinted version of jQuery, use
`make jquery` instead of `make`.
The built version of jQuery will be put in the `dist/` subdirectory.
To remove all built files, run `make clean`.
Running the Unit Tests
--------------------------------------
Start grunt to auto-build jQuery as you work:
`cd jquery && grunt watch`
Run the unit tests with a local server that supports PHP. No database is required. Pre-configured php local servers are available for Windows and Mac. Here are some options: