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

Upload .JSON files last #479

Merged
merged 2 commits into from
May 6, 2021
Merged

Upload .JSON files last #479

merged 2 commits into from
May 6, 2021

Conversation

anthmatic
Copy link
Contributor

Description and Context

Sorts out all JSON files except for files in modules and uploads them last

Fixes #129

@@ -40,12 +41,14 @@ function getFilesByType(files) {
cssAndJsFiles.push(file);
} else if (extension === 'html') {
templateFiles.push(file);
} else if (extension === 'json') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that we want to be more specific here and match only theme.json, fields.json that is not inside *.module and serverless.json.

Copy link
Contributor

@gcorne gcorne Apr 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, that looks to be covered by how module files are already uploaded after otherFiles. Might be good to add test coverage of this either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly, and I can't see a reason to treat *.functions files differently.

Adjusted test coverage to include json files

@anthmatic anthmatic merged commit e334411 into master May 6, 2021
@anthmatic anthmatic deleted the upload-json-last branch May 6, 2021 20:13
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.

Upload json files that depend on other files last
3 participants