如何在 jsdoc-grunt 任务中使用 jsdoc 选项
How to use jsdoc options in jsdoc-grunt task
我想添加 -p
标志以便使用 grunt-jsdoc
为私有方法生成文档。我该怎么做?
根据 grunt-jsdoc they state that we can use any of the options specified in the useJsDocCli 的文档,但不知道如何在 g运行t 任务中指定它们。这是我当前的 g运行t 任务:
jsdoc : {
dist : {
src: ['app/scripts/directives/*.js','README.md'],
options: {
destination: 'doc'
}
}
}
如何使用 -p
标志(或任何其他标志)指定我希望任务 运行?
模板部分下的文档中有一个示例 https://github.com/krampstudio/grunt-jsdoc#templates
只需使用不带破折号的标志名称,例如:
dist : {
src: ['app/scripts/directives/*.js','README.md'],
options: {
destination: 'doc',
private: true
}
}
}
我想添加 -p
标志以便使用 grunt-jsdoc
为私有方法生成文档。我该怎么做?
根据 grunt-jsdoc they state that we can use any of the options specified in the useJsDocCli 的文档,但不知道如何在 g运行t 任务中指定它们。这是我当前的 g运行t 任务:
jsdoc : {
dist : {
src: ['app/scripts/directives/*.js','README.md'],
options: {
destination: 'doc'
}
}
}
如何使用 -p
标志(或任何其他标志)指定我希望任务 运行?
模板部分下的文档中有一个示例 https://github.com/krampstudio/grunt-jsdoc#templates
只需使用不带破折号的标志名称,例如:
dist : {
src: ['app/scripts/directives/*.js','README.md'],
options: {
destination: 'doc',
private: true
}
}
}