-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Rewrite to TypeScript #2358
Comments
Cooool ! This is a big migration work, we need a detailed roadmap to implement it. |
For now, I would try to convert a simple package like |
I took a stab at the utils package: #2359 |
I opened #2360 to try to handle some of the tooling/config stuff needed to support the rest of the conversions. As of right now, it's mostly focused on
|
I would be honored to help with this! 🙌 Is there a list anywhere of what's in scope, and/or recommendations about what to start with? |
@JoshuaKGoldberg it turned out that I have posted this issue at the totally wrong time for myself 😂 The last 2 weeks were super crazy for me and I didn't have time to sit down properly to review the 2 existing PRs for this that have started working on migrating some packages. I think @with-heart's PR is currently the closest to getting the tooling-related stuff done: #2360 but there is still some work there to be done. If you could take a look into it - that would be highly appreciated. If no - I would wait a couple of days before we figure this out and land that PR. When that will be done it should be fairly easy to start migrating package after package - starting from "leaf" ones. |
I've created a ts-migration branch. It seems to me that the easiest approach to do this would be to actually:
This would simplify both the whole process and individual PRs. |
I think this is a great idea 🙂 Thanks for setting it up! |
I've started a PR in parallel to do so against the If a maintainer could grant my builds to run, that'd be very helpful. 😄 |
I hate that GitHub "feature" >.< Can I somehow grant you permission to run builds? Or will I have to approve them manually until we merge your PR? I believe that the restrictions get lifted if you already have some commits in the repo. |
I'd also love to help with this effort. What's the next best package to tackle for this? |
@sarayourfriend |
Just noting that |
I opened several PRs for this. @Andarist any chance they could get merged sometime soon? |
Yes, definitely! Thanks a lot for your contributions. I've seen all of them but I'm being slammed lately with work and didn't find the time to sit down to this in the late evenings (the only time I currently have for OSS). Sorry for the delay |
Okay, no worries! Just wanted to make sure it didn't slip through the cracks 🙂 Let me know if you need anything from me in the meantime! |
Hey! If you still need help, please let me know where I can help! 👋 |
@Beraliv thank you for the offer! It feels like we should now take care of Note that the current progress is available on the |
Hi, I would like to help migrating Migrating everything at once in a single Could we somehow merge the current work while keeping Flow enabled for the non-migrated packages? |
Probably not that much has changed on the main branch since the last merge - i will merge it to the ts-migration soon. Feel free to migrate anything and just branch off the ts-migration branch. I will take care of the merge conflicts |
In the packages that have already been migrated, we still have By the way, I am planning on working on some of the TypeScript tooling:
|
👋 I'm about to attempt a PR updating I'm not sure when I'll get around to it, but I'm also happy to be pinged to help out if folks want :) |
This is still useful for testing the types - the
Let's keep a single, top-level, config for the time being. It's how the setup works in some other repos that I collaborate on, like Changesets
The main advantage of using
This should be done - good catch (
@G-Rath if you could take a stab at converting this, it would be great. I've never worked with ESLint rules written in TS so this would be of a great help. |
Keeping the If we only change the internal implementation from JS to TS, it should be transparent to end users, as many already use the currently exported TS types. After the migration is complete and stable, it might make sense to remove it. Checking for multiple versions of TS is useful, might be worth keeping |
Currently Is there a way to prevent preconstruct from generating these unwanted files? @mitchellhamilton |
Hello @Andarist, |
Since Flow is not actively used by any core contributor and its adoption in the community has dropped significantly (especially in comparison to its alternative) it's time to refactor the codebase from Flow to TypeScript.
We could use some help with that. It's best to start from the small, leaf packages. We already have TS types for our packages, they are just not generated from the source.
Progress
The text was updated successfully, but these errors were encountered: