@@ -7,19 +7,20 @@ module.exports = grunt => {
7
7
8
8
const done = this . async ( ) ;
9
9
10
- const { inputs, output} = this . data ;
10
+ const inputs = this . data . inputs ;
11
+ const output = this . data . output ;
11
12
12
- const { description , ignore , layout , packageFile , parser , title } = this . data . config || { } ;
13
+ const config = this . data . config || { } ;
13
14
14
- const pkg = grunt . file . readJSON ( utils . findPackageFileInPath ( packageFile || 'package.json' ) ) ;
15
+ const pkg = grunt . file . readJSON ( utils . findPackageFileInPath ( config . package || 'package.json' ) ) ;
15
16
16
17
doxdox . parseInputs ( inputs , {
17
- 'description' : description || pkg . description || '' ,
18
- 'ignore' : ( ignore || '' ) . split ( / \s * , \s * / ) ,
19
- 'layout' : ( layout || 'markdown' ) . toLowerCase ( ) ,
20
- 'parser' : ( parser || 'dox' ) . toLowerCase ( ) ,
18
+ 'description' : config . description || pkg . description || '' ,
19
+ 'ignore' : ( config . ignore || '' ) . split ( / \s * , \s * / ) ,
20
+ 'layout' : ( config . layout || 'markdown' ) . toLowerCase ( ) ,
21
+ 'parser' : ( config . parser || 'dox' ) . toLowerCase ( ) ,
21
22
pkg,
22
- 'title' : title || pkg . name || 'Untitled Project'
23
+ 'title' : config . title || pkg . name || 'Untitled Project'
23
24
} ) . then ( content => {
24
25
25
26
grunt . file . write ( output , content , { 'encoding' : 'utf8' } ) ;
0 commit comments