-
Notifications
You must be signed in to change notification settings - Fork 11
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
add/typescript files #175
add/typescript files #175
Conversation
❌ Deploy Preview for priceless-booth-2dfcaf failed.
|
I wanted to draft this PR just to get the discussion started around beginning to at least rename the files, so that other issues can still be worked on. If you all think this is a good idea, I can correct some of the issues seen in the build. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are build errors. Don't think you can convert to ts just by changing the filenames. It won't build, you have to add types.
It might work locally for dev but it won't build for production.
I think we can keep the discussion in the existing thread in the issues tab. I thought you wanted reviews to merge into main since this is a pull request. |
@cherylli I did want to merge this to avoid issues later. I just wasn't sure if that would be a good approach. I kept it as a draft because I planned to fix the build issues if everyone thought it was an okay idea to move forward with. I think some of the errors, like potentially undefined variables are fine and quick fixes. You can keep JS in TypeScript without issues if you add |
Yeah I'm not sure. I don't think we should push any temporary thing to production unless it's an urgent bandaid fix. |
That's not an issue with me at all, do you think then maybe this issue should be completed before 165 since no one has started working on it yet? If so, I can just close this out. |
Hey, @vmcodes ! It seems like a nice start PR! The idea here was just to change the file naming and, then, keep doing the conversion file by file, right? If so, that's a way of doing it, but I have to agree with Cheryl: we don't push into production anything that is not fully ready because it's a risk you don't need to take. We could create a
How do you find this approach? |
That makes sense to me, I already changed all the file names though on chore/add-typescript, but I can make dev if you prefer. My question would be is once I finish the build issues, but before I add the types, should I make the PR so people can still work coding in JS? I was just thinking that it would avoid merge conflicts. |
More than just preventing merge conflicts, our priority should be to ensure that unfinished work is not pushed to production, Vincent. Here are the recommended steps:
This approach allows Please let me know if this explanation is clear, Vincent! |
Have you updated the CHANGELOG.md file? If not, please do it.
Not yet, was looking for guidance.
What is this change?
Updated file names to be compatible with TypeScript and added TypeScript dependencies.
I think that it may be a good idea to at least change the files names before getting started, so that if any other issues are worked on at the same time, things won't get too messy when merging.
Were there any complications while making this change?
No.
How did you verify this change?
Everything worked locally for me.
When should this be merged?
This should be reviewed first, beginning with a draft.