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: developer_docs/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ $ grunt
78
78
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:
79
79
80
80
```
81
-
$ npm run grunt connect -keepalive
81
+
$ npm run dev
82
82
```
83
83
84
84
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,
108
108
$ npm run grunt
109
109
```
110
110
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.
112
112
113
113
6. Make some changes to the codebase and [commit](https://help.github.com/articles/github-glossary/#commit) them with Git.
Copy file name to clipboardExpand all lines: developer_docs/inline_documentation.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,13 @@ If the parameter is optional, add square brackets around the name:
68
68
@param {type} [name] Description here.
69
69
```
70
70
71
+
If the parameter takes one or more values defined in `constants.js`,
72
+
then the type should be specified as `{Constant}` and the valid values should be enumerated in the comment following the `either` keyword, eg:
73
+
74
+
```
75
+
@param {Constant} horizAlign horizontal alignment, either LEFT, CENTER, or RIGHT
76
+
```
77
+
71
78
## Specify return type
72
79
73
80
The `@return` is identical to `@params`, but without the name. It should be the last element in `@method`. The JS types are: String, Number, Boolean, Object, Array, Null, and Undefined. If there is no return type, do not include `@return`.
0 commit comments