aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2016-08-19 09:14:35 -0400
committerScott González <scott.gonzalez@gmail.com>2016-08-24 11:55:53 -0400
commit1148aefd597ef465800622d57eae4a71b6fce85b (patch)
tree491f4ec1e00faa4e4403b7a6714395b529d69ce5
parentf25f9ec72da49dda2fbf6978987750932b807fe8 (diff)
downloadjquery-ui-1148aefd597ef465800622d57eae4a71b6fce85b.tar.gz
jquery-ui-1148aefd597ef465800622d57eae4a71b6fce85b.zip
CONTRIBUTING: Replace grunt commands with npm
Closes gh-1733
-rw-r--r--CONTRIBUTING.md14
1 files changed, 4 insertions, 10 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 8c1ceb034..53922478d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -27,7 +27,7 @@ git clone git://github.com/jquery/jquery-ui.git
cd jquery-ui
```
-The tests can run in any local web server. Ideally you should test your patch in appropriate web browsers and if possible run `grunt` to lint the code and run automated tests (this will happen automatically when you create a pull request). See the [Recommended Setup](#environment-recommended-setup) for setting up Node.js so that the grunt command works.
+The tests can run in any local web server. Ideally you should test your patch in appropriate web browsers and if possible run `npm test` to lint the code and run automated tests (this will happen automatically when you create a pull request). See the [Recommended Setup](#environment-recommended-setup) for setting up Node.js so that the `npm test` command works.
### Environment: Getting the Source
@@ -61,15 +61,9 @@ git pull upstream master
### Environment: Recommended Setup
-jQuery UI uses Node.js & Grunt to automate the building and validation of source code. Here is how to set that up:
+jQuery UI uses Node.js to automate the building and validation of source code. Here is how to set that up:
* Get [Node.js](http://nodejs.org/) (includes NPM, necessary for the next step)
-* Install Grunt cli:
-
-```bash
-npm install -g grunt-cli
-```
-
* Install local Node.js modules
```bash
@@ -87,10 +81,10 @@ The tests require a local web server and the samples contain some PHP, so a PHP
### Running the Tests
-To lint the JavaScript, HTML, and CSS, as well as run a smoke test in PhantomJS, run grunt:
+To lint the JavaScript, HTML, and CSS, as well as run a smoke test in PhantomJS, run the full test suite through npm:
```bash
-grunt
+npm test
```
To run the tests for a specific plugin in your browser, open the appropriate file from the `/tests/unit/` directory, for example: `http://localhost/tests/unit/accordion/accordion.html`. The domain will be dependent on your local server configuration; if there is a port, be sure to include it.