File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ var child;
25
25
26
26
var buildOptions = {
27
27
buildDir : process . cwd ( ) ,
28
- buildVersion : process . version . slice ( 1 )
28
+ buildVersion : process . version . slice ( 1 ) ,
29
+ buildName : 'node-documents'
29
30
}
30
31
31
32
var options = process . argv . slice ( 2 ) ;
@@ -44,7 +45,7 @@ if(options[0] !== []) {
44
45
if ( buildDir . slice ( - 1 ) !== docEnd ) {
45
46
buildDir += docEnd ;
46
47
}
47
- buildOptions . buildDir = buildDir + 'node-documents' ;
48
+ buildOptions . buildDir = buildDir + buildOptions . buildName ;
48
49
console . log ( 'Custom build dir: ' , buildOptions . buildDir ) ;
49
50
}
50
51
if ( index === options . length - 1 ) {
@@ -123,7 +124,7 @@ function checkOptions() {
123
124
if ( buildOptions . buildDir . slice ( - 1 ) !== docEnd ) {
124
125
buildOptions . buildDir += docEnd ;
125
126
}
126
- buildOptions . buildDir += 'node-documents-' + buildOptions . buildVersion + docEnd ;
127
+ buildOptions . buildDir += buildOptions . buildName + docEnd ;
127
128
console . log ( 'NODe API: Building to Directory: %s' , buildOptions . buildDir ) ;
128
129
checkFolders ( ) ;
129
130
}
Original file line number Diff line number Diff line change @@ -10,5 +10,6 @@ var buildOptions = require('../app/index.js').buildOptions;
10
10
11
11
// Test version change
12
12
buildOptions . buildVersion = '4.4.0'
13
+ buildOptions . buildName = 'apidoc'
13
14
14
15
createDocs ( ) ;
You can’t perform that action at this time.
0 commit comments