I have a Nodejs
project made of several folders. Each folder is intended to be a java-like package of classes.
src
folderA
A.js
...
folderB
B.js
...
...
Each class A, B, ...
is exported as a default export
, as in:
/**
*
* @class
*/
export default class A {
constructor() {
...
}
...
}
...
However, when I run jsDoc
I get some module.exports.html
page containing the documentation of all the classes in a single html
page, whereas I whould like, of course, a documentation reflecting the structure of my project.
Reading from here it seems that the only way to go is creating my custom template, which is something I wish not to do. It appears to me unlikely that jsDoc
does not support the documentation of an ES6
project, since jsDoc
supports ES6
classes.
Is the structure of my project somehow wrong? How is it expected to be structured a project made of ES6
classes? Is there a way to reflect the project structure into the documentation by jsDoc
? Is there a different tool which could do it instead of jsDoc
?