Merge pull request #350 from garpeer/readme-in-config

allow settings README.md & package.json in config file
This commit is contained in:
Jeff Williams 2013-02-17 09:32:43 -08:00
commit 956c70becc

View File

@ -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);