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

refactor(gatsby): convert program reducer to typescript #24941

Merged
merged 7 commits into from
Jun 17, 2020

Conversation

tgallacher
Copy link
Contributor

@tgallacher tgallacher commented Jun 11, 2020

Description

Stab at converting Gatsby program reducer to Typescript.

Notes:

There is a partial stub here (for the reporter node on the IProgram initial state, as it raised a TS bug which I don't think is related to this change. Temp disabled it for now; could dig deeper if it is deemed a blocker.

I think this also resolves a potential bug: The initial reducer state (at "bootstrapping") included a node in the redux state called state. I think this is supposed to be status as per the IProgram interface.

Documentation

Related Issues

#21995

@tgallacher tgallacher requested a review from a team as a code owner June 11, 2020 23:45
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 11, 2020
@tgallacher tgallacher changed the title Ts migration/program reducer refactor(gatsby): convert program reducer to typescript Jun 11, 2020
@pvdz pvdz added topic: TypeScript migration and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 16, 2020
@tgallacher tgallacher requested a review from a team as a code owner June 16, 2020 14:17
blainekasten
blainekasten previously approved these changes Jun 16, 2020
Copy link
Contributor

@blainekasten blainekasten left a comment

Choose a reason for hiding this comment

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

I made a few changes to the approach, but this looks great to me, let's merge it!

Thank you so much for contributing to our TypeScript refactor! We have more work to do and we would love to have you stay involved in our transition. Please submit more PRs! 💜

@blainekasten blainekasten added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jun 16, 2020
blainekasten
blainekasten previously approved these changes Jun 16, 2020
@gatsbybot gatsbybot merged commit a0ab7b1 into gatsbyjs:master Jun 17, 2020
@gatsbot
Copy link

gatsbot bot commented Jun 17, 2020

Holy buckets, @tgallacher — we just merged your PR to Gatsby! 💪💜

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. We’ve got Gatsby t-shirts, stickers, hats, scrunchies, and much more. (You can also unlock even more free swag with 5 contributions — wink wink nudge nudge.) See gatsby.dev/swag for details.
  2. We just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. Accept the invite by visiting https://github.com/orgs/gatsbyjs/invitation. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again!

@tgallacher tgallacher deleted the ts-migration/program-reducer branch June 18, 2020 09:31
axe312ger pushed a commit that referenced this pull request Jun 23, 2020
* rename file to .ts ext

* refactor(gatsby): conver program reducer to typescript

* Update typings approach

* update yarn.lock

* change to use lib reporter

Co-authored-by: Blaine Kasten <[email protected]>
pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
* rename file to .ts ext

* refactor(gatsby): conver program reducer to typescript

* Update typings approach

* update yarn.lock

* change to use lib reporter

Co-authored-by: Blaine Kasten <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants