Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[fixed] jsdoc for optinal arguments contains the default value
Browse files Browse the repository at this point in the history
  • Loading branch information
thealjey committed Sep 29, 2015
1 parent 111d8a9 commit 1ecb8ab
Show file tree
Hide file tree
Showing 22 changed files with 171 additions and 58 deletions.
10 changes: 5 additions & 5 deletions build/DevServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ var _path = require('path');
* Please install and enable the LiveReload browser extension for the CSS reloading to work.
*
* @class
* @param {string} script - a full system path to a JavaScript file
* @param {string} style - a full system path to a SASS file
* @param {string} devDir - a full system path to a directory in which to put any compiled development resources
* @param {number} [port] - a port at which to start the dev server, defaults to 3000
* @param {boolean} [react] - false to disable the react hot loader plugin, defaults to true
* @param {string} script - a full system path to a JavaScript file
* @param {string} style - a full system path to a SASS file
* @param {string} devDir - a full system path to a directory in which to put any compiled development resources
* @param {number} [port=3000] - a port at which to start the dev server
* @param {boolean} [react=true] - false to disable the react hot loader plugin
* @example
* import {DevServer} from 'webcompiler';
* import {join} from 'path';
Expand Down
2 changes: 1 addition & 1 deletion build/JS.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var i = 0;
* A JavaScript compiler
*
* @class
* @param {Object} [rules] - an object that lets you override default linting rules
* @param {Object} [rules={}] - an object that lets you override default linting rules
* @example
* import {JS} from 'webcompiler';
*
Expand Down
2 changes: 1 addition & 1 deletion build/JSLint.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var _path = require('path');
* A JavaScript linter
*
* @class
* @param {Object} [rules] - an object that lets you override default linting rules
* @param {Object} [rules={}] - an object that lets you override default linting rules
* @example
* import {JSLint} from 'webcompiler';
* import {join} from 'path';
Expand Down
8 changes: 4 additions & 4 deletions build/NativeProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ var NativeProcess = (function () {
* @memberof NativeProcess
* @instance
* @method run
* @param {Function} callback - a callback function, accepts 2 arguments: an error string or null and the
* response string
* @param {Array<string>} [args] - an optional array of arguments to pass to the process
* @param {Object} [opts] - an optional object containing configuration options for the process
* @param {Function} callback - a callback function, accepts 2 arguments: an error string or null and the
* response string
* @param {Array<string>} [args=[]] - an optional array of arguments to pass to the process
* @param {Object} [opts={}] - an optional object containing configuration options for the process
* @example
* mkdir.run(function (e) {
* if (e) {
Expand Down
8 changes: 4 additions & 4 deletions build/SASS.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ var i = 0;
* A SASS compiler
*
* @class
* @param {Array<string>} [excludeLinter] - names of linters to exclude
* @param {Object} [importOnceOptions] - an object that lets you override default importOnce resolver
* configuration
* @param {Array<string>} [includePaths] - an array of additional include paths
* @param {Array<string>} [excludeLinter=[]] - names of linters to exclude
* @param {Object} [importOnceOptions={}] - an object that lets you override default importOnce resolver
* configuration
* @param {Array<string>} [includePaths=[]] - an array of additional include paths
* @example
* import {SASS} from 'webcompiler';
*
Expand Down
5 changes: 3 additions & 2 deletions build/SASSCompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ var options = {
* SCSS file compiler
*
* @class
* @param {Object} [importOnceOptions] - an object that lets you override default importOnce resolver configuration
* @param {...string} includePaths - an array of additional include paths
* @param {Object} [importOnceOptions={}] - an object that lets you override default importOnce resolver
* configuration
* @param {Array<string>} [includePaths=[]] - an array of additional include paths
* @example
* import {SASSCompile} from 'webcompiler';
*
Expand Down
8 changes: 4 additions & 4 deletions build/jsWebCompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ var config = {
/**
* Compiles JavaScript for the browser
*
* @param {string} inPath - a full system path to the input file
* @param {string} outPath - a full system path to the output file
* @param {Function} callback - a callback function which accepts 1 argument: an array of error strings or null
* @param {boolean} [devMode] - if true provides faster source map rebuilds, good for rapid development
* @param {string} inPath - a full system path to the input file
* @param {string} outPath - a full system path to the output file
* @param {Function} callback - a callback function which accepts 1 argument: an array of error strings or null
* @param {boolean} [devMode=false] - if true provides faster source map rebuilds, good for rapid development
* @example
* import {jsWebCompile} from 'webcompiler';
*
Expand Down
30 changes: 28 additions & 2 deletions docs/DevServer.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ <h5>Parameters:</h5>



<th>Default</th>


<th class="last">Description</th>
</tr>
Expand Down Expand Up @@ -114,6 +116,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">a full system path to a JavaScript file</td>
</tr>
Expand Down Expand Up @@ -145,6 +151,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">a full system path to a SASS file</td>
</tr>
Expand Down Expand Up @@ -176,6 +186,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">a full system path to a directory in which to put any compiled development resources</td>
</tr>
Expand Down Expand Up @@ -209,8 +223,14 @@ <h5>Parameters:</h5>



<td class="default">

3000

</td>


<td class="description last">a port at which to start the dev server, defaults to 3000</td>
<td class="description last">a port at which to start the dev server</td>
</tr>


Expand Down Expand Up @@ -242,8 +262,14 @@ <h5>Parameters:</h5>



<td class="default">

true

</td>


<td class="description last">false to disable the react hot loader plugin, defaults to true</td>
<td class="description last">false to disable the react hot loader plugin</td>
</tr>


Expand Down
8 changes: 8 additions & 0 deletions docs/JS.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ <h5>Parameters:</h5>



<th>Default</th>


<th class="last">Description</th>
</tr>
Expand Down Expand Up @@ -112,6 +114,12 @@ <h5>Parameters:</h5>



<td class="default">

{}

</td>


<td class="description last">an object that lets you override default linting rules</td>
</tr>
Expand Down
8 changes: 8 additions & 0 deletions docs/JSLint.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ <h5>Parameters:</h5>



<th>Default</th>


<th class="last">Description</th>
</tr>
Expand Down Expand Up @@ -112,6 +114,12 @@ <h5>Parameters:</h5>



<td class="default">

{}

</td>


<td class="description last">an object that lets you override default linting rules</td>
</tr>
Expand Down
20 changes: 19 additions & 1 deletion docs/NativeProcess.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ <h5>Parameters:</h5>



<th>Default</th>


<th class="last">Description</th>
</tr>
Expand Down Expand Up @@ -261,9 +263,13 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">a callback function, accepts 2 arguments: an error string or null and the
response string</td>
response string</td>
</tr>


Expand Down Expand Up @@ -295,6 +301,12 @@ <h5>Parameters:</h5>



<td class="default">

[]

</td>


<td class="description last">an optional array of arguments to pass to the process</td>
</tr>
Expand Down Expand Up @@ -328,6 +340,12 @@ <h5>Parameters:</h5>



<td class="default">

{}

</td>


<td class="description last">an optional object containing configuration options for the process</td>
</tr>
Expand Down
22 changes: 21 additions & 1 deletion docs/SASS.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ <h5>Parameters:</h5>



<th>Default</th>


<th class="last">Description</th>
</tr>
Expand Down Expand Up @@ -112,6 +114,12 @@ <h5>Parameters:</h5>



<td class="default">

[]

</td>


<td class="description last">names of linters to exclude</td>
</tr>
Expand Down Expand Up @@ -145,9 +153,15 @@ <h5>Parameters:</h5>



<td class="default">

{}

</td>


<td class="description last">an object that lets you override default importOnce resolver
configuration</td>
configuration</td>
</tr>


Expand Down Expand Up @@ -179,6 +193,12 @@ <h5>Parameters:</h5>



<td class="default">

[]

</td>


<td class="description last">an array of additional include paths</td>
</tr>
Expand Down
25 changes: 20 additions & 5 deletions docs/SASSCompile.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h2>



<h4 class="name" id="SASSCompile"><span class="type-signature"></span>new SASSCompile<span class="signature">(importOnceOptions<span class="signature-attributes">opt</span>, &hellip;includePaths)</span><span class="type-signature"></span></h4>
<h4 class="name" id="SASSCompile"><span class="type-signature"></span>new SASSCompile<span class="signature">(importOnceOptions<span class="signature-attributes">opt</span>, includePaths<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>



Expand Down Expand Up @@ -77,6 +77,8 @@ <h5>Parameters:</h5>



<th>Default</th>


<th class="last">Description</th>
</tr>
Expand Down Expand Up @@ -112,8 +114,15 @@ <h5>Parameters:</h5>



<td class="default">

{}

</td>


<td class="description last">an object that lets you override default importOnce resolver configuration</td>
<td class="description last">an object that lets you override default importOnce resolver
configuration</td>
</tr>


Expand All @@ -126,7 +135,7 @@ <h5>Parameters:</h5>
<td class="type">


<span class="param-type">string</span>
<span class="param-type">Array.&lt;string></span>



Expand All @@ -135,16 +144,22 @@ <h5>Parameters:</h5>

<td class="attributes">


&lt;optional><br>



&lt;repeatable><br>


</td>



<td class="default">

[]

</td>


<td class="description last">an array of additional include paths</td>
</tr>
Expand Down
Loading

0 comments on commit 1ecb8ab

Please sign in to comment.