Skip to content

Rebuild fetch files #2072

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

Merged
merged 5 commits into from
Apr 23, 2018
Merged

Rebuild fetch files #2072

merged 5 commits into from
Apr 23, 2018

Conversation

jeremenichelli
Copy link
Member

@jeremenichelli jeremenichelli commented Apr 21, 2018

This adds all fetch files into the new rebuild flow.

  • Files gets fetched with an underscore, later the enhacer of the DirectoryTreePlugin detects the files and removes them from computed route name.
  • I did a lot of gardening on the fetch scripts, though I'm keeping the .sh one as entry point since moving the API to JavaScript is a little unnecessary, I gave it a try and it's just more spaghetti code.
  • Moved the Node engine verison, this allows us to use promisify, all fetch flows are now Promise based, no more callback which resulted on tons of lines removed and more readable code.
  • Updated some version and packages names to prevent warning logs and take the project to a more sane state.
  • Created yarn.lock file to match the rest of the projects in the organization
  • A lot of processing functions were moved to new utils folder for better file organization.

@skipjack skipjack mentioned this pull request Apr 21, 2018
16 tasks
@jeremenichelli
Copy link
Member Author

Did we disabled builds on PRS? 🤔

Copy link
Member

@montogeek montogeek left a comment

Choose a reason for hiding this comment

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

Great work @jeremenichelli

tt, code { font-size: 90%; color: inherit }
}

h1:first-child {
Copy link
Member

Choose a reason for hiding this comment

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

What is the reason of this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is because, when a README has an h2 heading as the first child, if we remove the margin it gets collapsed with the page title and it looks bad.

@@ -0,0 +1,11 @@
module.exports = function yamlHeadmatter(fields) {
Copy link
Member

Choose a reason for hiding this comment

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

What is this doing?

Copy link
Member Author

@jeremenichelli jeremenichelli Apr 23, 2018

Choose a reason for hiding this comment

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

This builds the yaml matter for the fetched README files, I didn't add this I just moved it to an specific file so the fetchPackagedFiles script looks cleaner.

@jeremenichelli jeremenichelli merged commit d43ac95 into rebuild Apr 23, 2018
@montogeek montogeek deleted the rebuild-fetch-files branch April 23, 2018 11:18
@montogeek
Copy link
Member

Squash and merge next time please

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