WOC 3.0 project - Convert the editor from Flow to TypeScript #4897
Maniktherana
started this conversation in
Enhancement ideas (and their technical discussions)
Replies: 1 comment
-
Thanks again @Maniktherana for posting this and making this project :) Basically, we have two things to figure out:
For 1, I recommend to start that you try a few codemod and that for each of them, you list:
For 2, I agree that migrating to Vite would be the best. This being said it might be a fairly complicated task. So I recommend that for now we investigate how to enable TypeScript in create-react-app (https://create-react-app.dev/docs/adding-typescript/) and use it first to test the codemods. Once we have something running with create-react-app in TypeScript, we can think about using Vite :) Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
I got selected as a mentee for Winter of Code 3.0! My proposal is to convert the editor from JavaScript+Flow to TypeScript using a codemod script and to switch from Create React App (CRA) to Vite. The idea is relatively straightforward:
Quite a few big names have done this in the past, namely Airtable, Stripe, and Khan Academy. Luckily they also open-sourced their scripts. They also shared their experiences migrating and that came in handy when researching for my proposal.
Resources
CRA to Vite
I think Vite is great and there's value in using it over CRA. Vite tends to be more performant as the codebase grows in size and complexity. It could lead to shorter build times which is a big plus.
If you need more details, you can find my proposal here
Beta Was this translation helpful? Give feedback.
All reactions