aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-11-14 10:17:18 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-11-14 10:17:18 -0500
commitac7ff97f8b9cc2cf29e1ed14d931dbb5b690e3af (patch)
tree37cdc1694a198b2c4587863c29a455272d13327d /README.md
parent1a13e0b1adcc7e5f4affa2e64f0533cb76a802b5 (diff)
downloadjquery-ac7ff97f8b9cc2cf29e1ed14d931dbb5b690e3af.tar.gz
jquery-ac7ff97f8b9cc2cf29e1ed14d931dbb5b690e3af.zip
Use grunt and bower packages as local dependencies. Close gh-1433.
Diffstat (limited to 'README.md')
-rw-r--r--README.md38
1 files changed, 18 insertions, 20 deletions
diff --git a/README.md b/README.md
index c751ccb08..6878bed81 100644
--- a/README.md
+++ b/README.md
@@ -29,39 +29,37 @@ 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:
+Clone a copy of the main jQuery git repo by running:
```bash
git clone git://github.com/jquery/jquery.git
```
-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:
-
+Enter the jquery directory and run the build script:
```bash
-npm install -g grunt-cli bower
+cd jquery && npm run-script build
```
+The built version of jQuery will be put in the `dist/` subdirectory, along with the minified copy and associated map file.
-Make sure you have `grunt` and `bower` installed by testing:
+If you want create custom build or help with jQuery development, it would be better to install <a href="https://github.com/gruntjs/grunt-cli">grunt command line interface</a> as a global package:
-```bash
-grunt -version
-bower -version
```
-
-Enter the jquery directory and install the Node and Bower dependencies, this time *without* specifying a global(-g) install:
-
-```bash
-cd jquery && npm install
+npm install -g grunt-cli
+```
+Make sure you have `grunt` installed by testing:
+```
+grunt -v
```
-Then, to get a complete, minified (w/ Uglify.js), linted (w/ JSHint) version of jQuery, type the following:
-
-```bash
+Now by running `grunt` command, in the jquery directory, you could build full version of jQuery, just like with `npm run-script build` command:
+```
grunt
```
-The built version of jQuery will be put in the `dist/` subdirectory, along with the minified copy and associated map file.
-
+There are many other tasks avaliable for jQuery Core:
+```
+grunt -help
+```
### Modules
@@ -137,10 +135,10 @@ Running the Unit Tests
Make sure you have the necessary dependencies:
```bash
-bower install
+npm install
```
-Start `grunt watch` to auto-build jQuery as you work:
+Start `grunt watch` or `npm start` to auto-build jQuery as you work:
```bash
cd jquery && grunt watch