K
K
Kotaro Hiba2020-09-04 14:32:17
JavaScript
Kotaro Hiba, 2020-09-04 14:32:17

How to document the entire project at once using jsdoc?

Hello, I recently learned about such a thing as jsDoc, and decided to try it, in principle, everything turns out with the exception of one problem, here are the project files
5f522540e67ec165152483.png
To generate documentation, I prescribe

jsdoc -c jsdoc.config.js src/App.vue src/component/test.vue

The question is how to make jsdoc itself search for all .vue files in folders and run it through itself?
Here is the jsdoc config
module.exports = {
  "plugins": [
    "node_modules/jsdoc-vuejs"
  ],
  "source": {
    "includePattern": "\\.(vue|js)$"
  }
}

UPD
I found this instruction in the dock, but can't you just write src/**/*.vue somehow?
5f5226a020ecf660630182.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question