Internal wicked functions
- Source:
- index.js, line 19
Methods
-
<static> cloneWiki(cb)
-
Clones the wiki project of the project in the current directory
Parameters:
Name Type Description cbfunction called back with directory to which wiki was cloned
- Source:
- lib/clone-wiki.js, line 42
-
<static> run(bin, args, cwd, cb) → {Object}
-
Spawns the given bin with the given args from the cwd or current working directory.
Parameters:
Name Type Argument Description binString full path to the binary to run
argsArray.<String> the args to pass to the binary
cwdString <optional>
full path to the directory to run bin from, defaults to current directory
cbfunction called back with err and/or program exit code
- Source:
- lib/run.js, line 6
Returns:
the spawned binary which exposes stdout and stderr streams
- Type
- Object
-
<static> runJsdoc(projectroot, wikiroot, jsdocargs, cb)
-
Runs the jsdoc binary from the projectroot.
Note about jsdocargs
- they shouldn't contain
--destinationoption since destination is always inside wiki dir - if no
--configureoption is given, the default./config/jsdocrc.jsonconfig is passed to jsdoc
Parameters:
Name Type Description projectrootString root of project whose jsdoc comments are converted to html
wikirootString in which the out folder with html files is created
jsdocargsArray.<String> extra args for jsdoc supplied via
-- --arg one --arg two ...cbfunction called back when jsdocs were generated
- Source:
- lib/run-jsdoc.js, line 21
- they shouldn't contain