mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Merge source includes with command line arguments *before* checking for README.md and package.json.
Allows to set these in configs source.includes.
This commit is contained in:
parent
e553dad941
commit
ef9660119f
8
jsdoc.js
8
jsdoc.js
@ -179,6 +179,10 @@ function main() {
|
||||
if (env.conf.plugins) {
|
||||
plugins.installPlugins(env.conf.plugins, app.jsdoc.parser);
|
||||
}
|
||||
|
||||
if (env.conf.source && env.conf.source.include) {
|
||||
env.opts._ = (env.opts._ || []).concat(env.conf.source.include);
|
||||
}
|
||||
|
||||
// any source file named package.json or README.md is treated special
|
||||
for (i = 0, l = env.opts._.length; i < l; i++ ) {
|
||||
@ -193,10 +197,6 @@ function main() {
|
||||
}
|
||||
}
|
||||
|
||||
if (env.conf.source && env.conf.source.include) {
|
||||
env.opts._ = (env.opts._ || []).concat(env.conf.source.include);
|
||||
}
|
||||
|
||||
if (env.conf.source && env.opts._.length > 0) { // are there any files to scan and parse?
|
||||
filter = new Filter(env.conf.source);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user