Skip to content

Commit 61c4cc7

Browse files
authored
Merge pull request #3124 from Spongman/npm-run-dev
add 'npm run dev' script, docs
2 parents 6df2449 + 80ed765 commit 61c4cc7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Gruntfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ module.exports = function(grunt) {
362362
open: {
363363
yui: {
364364
path: 'http://127.0.0.1:9001/docs/reference/'
365+
},
366+
dev: {
367+
path: 'http://127.0.0.1:9001/test/'
365368
}
366369
},
367370
'saucelabs-mocha': {

developer_docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $ grunt
7878
Sometimes it is useful to run the tests in the browser instead of on the command line. To do this, first start the [connect](https://github.com/gruntjs/grunt-contrib-connect) server:
7979

8080
```
81-
$ npm run grunt connect -keepalive
81+
$ npm run dev
8282
```
8383

8484
With the server running, you should be able to open `test/test.html` in a browser.
@@ -108,7 +108,7 @@ A complete guide to unit testing is beyond the scope of the p5.js documentation,
108108
$ npm run grunt
109109
```
110110

111-
If you're continuously changing files in the library, you may want to run `npm run grunt watch:quick` to automatically rebuild the library for you whenever any of its source files change without you having to first type the command manually.
111+
If you're continuously changing files in the library, you may want to run `npm run dev` to automatically rebuild the library for you whenever any of its source files change without you having to first type the command manually.
112112

113113
6. Make some changes to the codebase and [commit](https://help.github.com/articles/github-glossary/#commit) them with Git.
114114

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"scripts": {
55
"grunt": "grunt",
66
"build": "grunt build",
7+
"dev": "grunt browserify connect open:dev watch:quick",
78
"docs": "grunt yui",
89
"docs:dev": "grunt yui:dev",
910
"test": "grunt",

0 commit comments

Comments
 (0)