-
-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use resultBaseDir as in 3.x #1583 #1584
Conversation
@@ -26,7 +26,11 @@ module.exports = function(input, timestamp, outputFolder, resultBaseURL) { | |||
storageBasePath = path.resolve(outputFolder); | |||
} else { | |||
resultsSubFolders.push(getDomainOrFileName(input), timestamp.format('YYYY-MM-DD-HH-mm-ss')); | |||
storageBasePath = path.resolve('sitespeed-result', ...resultsSubFolders); | |||
if (resultBaseDir) { | |||
storageBasePath = path.resolve(resultBaseDir,'sitespeed-result', ...resultsSubFolders); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the cli description, the sitespeed-result should not be added to this path.
@@ -521,7 +521,10 @@ module.exports.parseCommandLine = function parseCommandLine() { | |||
type: 'boolean' | |||
}) | |||
.option('outputFolder', { | |||
describe: 'The folder where the result will be stored.' | |||
describe: 'The folder where the result will be stored, disabling hostname/date in the URL' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe clearer as "hostname/date will not be appended to path"?
@@ -15,7 +15,7 @@ function getDomainOrFileName(input) { | |||
return domainOrFile; | |||
} | |||
|
|||
module.exports = function(input, timestamp, outputFolder, resultBaseURL) { | |||
module.exports = function(input, timestamp, outputFolder, resultBaseURL, resultBaseDir) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to keep the two path related parameters next to each other in the parameter list, and keep the URL last.
No description provided.