Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Use resultBaseDir as in 3.x #1583 #1584

wants to merge 3 commits into from

Conversation

soulgalore
Copy link
Member

No description provided.

@soulgalore soulgalore requested a review from tobli April 22, 2017 21:17
@@ -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);
Copy link
Member

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'
Copy link
Member

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) {
Copy link
Member

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.

@soulgalore soulgalore closed this Oct 3, 2017
@soulgalore soulgalore deleted the resultBaseDir branch November 24, 2017 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants