mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
add recurseDepth config option (#1340)
This commit is contained in:
parent
8f5c60befd
commit
43a117d6a1
4
cli.js
4
cli.js
@ -315,8 +315,8 @@ cli.scanFiles = function() {
|
||||
if (env.conf.source && env.opts._.length) {
|
||||
filter = new Filter(env.conf.source);
|
||||
|
||||
env.sourceFiles = app.jsdoc.scanner.scan(env.opts._, (env.opts.recurse ? 10 : undefined),
|
||||
filter);
|
||||
env.sourceFiles = app.jsdoc.scanner.scan(env.opts._,
|
||||
(env.opts.recurse ? env.conf.recurseDepth : undefined), filter);
|
||||
}
|
||||
|
||||
return cli;
|
||||
|
||||
@ -24,6 +24,12 @@ function mergeRecurse(target, source) {
|
||||
|
||||
// required config values, override these defaults in your config.json if necessary
|
||||
var defaults = {
|
||||
plugins: [],
|
||||
recurseDepth: 10,
|
||||
source: {
|
||||
includePattern: '.+\\.js(doc|x)?$',
|
||||
excludePattern: ''
|
||||
},
|
||||
tags: {
|
||||
allowUnknownTags: true,
|
||||
dictionaries: ['jsdoc', 'closure']
|
||||
@ -31,12 +37,7 @@ var defaults = {
|
||||
templates: {
|
||||
monospaceLinks: false,
|
||||
cleverLinks: false
|
||||
},
|
||||
source: {
|
||||
includePattern: '.+\\.js(doc|x)?$',
|
||||
excludePattern: ''
|
||||
},
|
||||
plugins: []
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@ -100,7 +100,7 @@ exports.addTutorial = function(current) {
|
||||
exports.load = function(filepath) {
|
||||
var content;
|
||||
var current;
|
||||
var files = fs.ls(filepath, env.opts.recurse ? 10 : undefined);
|
||||
var files = fs.ls(filepath, env.opts.recurse ? env.conf.recurseDepth : undefined);
|
||||
var name;
|
||||
var match;
|
||||
var type;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user