我有以下的..。
/**
* Represents a base element
* @extends HTMLElement
* @constructor
*/
export class Base extends HTMLElement {
...
}当我跑的时候..。
jsdoc src/jrg-base-element.mjs那我就..。
没有要处理的输入文件。
我试过--debug .
{"env":{"conf":{"plugins":[],"recurseDepth":10,“includePattern”:“includePattern”:“.+.js(doc\x)?$”,“excludePattern”:“(^\)”},“sourceType”:“模块”,“标记”:{“allowUnknownTags”:true,“字典”:“jsdoc”,“闭包”},“模板”:{“monospaceLinks”:false,"cleverLinks":false,“default”:{“outputSourceFiles”:true},“opts”:{“”:“src/jrg-base-element.mjs.mjs”,“调试”:true,“目的地”:“./out/”,“编码”:“utf8”}}
这看起来很接近(The error message "There are no input files to process" from jsdoc),但我不知道该怎么做。
有什么想法吗?
发布于 2019-12-07 23:09:19
我自己试过了:
npm安装-g jsdoc => OK
jsdoc src
"out/"):
换言之:
( a)您可以指定一个JS文件,但是您通常会指定一个JS包目录。
( b)默认情况下,JSDoc不承认".mjs“
建议:
指定配置文件,并编辑source.includePatter=n
https://jsdoc.app/about-configuring-jsdoc.html#specifying-input-files
指定输入文件
源选项集与命令行中提供给JSDoc的路径组合在一起,确定JSDoc用于生成文档的输入文件集。
{“源”:{“包括”:生成文件的/*路径数组,以便为*/生成文档,“排除”:排除*/的/*路径数组,"includePattern":“.+\.js(Doc_X)?$”,"excludePattern":“(^\)\}
祝你好运--请把你发现的东西发回去!
https://stackoverflow.com/questions/59230857
复制相似问题