-
Notifications
You must be signed in to change notification settings - Fork 56
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
Move to Typescript #89
Comments
yes, I have some regret not starting off with typescript and have been postponing the refactor effort. I've added it to my backlog list for tracking, but I have a few features I've committed to first. |
If it's alright with you I'd like to move to strict = false first, this makes most JavaScript okay for TypeScript. That way the types can follow organically. I'd like to help out with this change. Are your unmerged branches very different from main? |
I currently only have two relevant branches: I appreciate any help with the migration towards typescript. thank you. |
rnr has been a huge help |
Thus I'm unable to debug what is going wrong, currently running the frontend requires debugging minimized code.
This where my participation ends, I hope I've given you some helpful advice |
Yes, I understand. For my reference can you point me to an example of your point 2 and what you would have expected to see instead. Thanks for your advice. |
Instead of using absolute imports like "components/card.tsx" use "src/components/card.tsx" or "~/src/components/card.tsx" I attempted to add each dir in src as a base in my configs but it just becomes a buggy mess. |
Okay I see what you mean. I appreciate all of your advice and will incorporate it as I go forward. |
Thanks for your other PR, I will test it out when I am back from holidays. I have taken your previous comments to heart and am refactoring the entire client source to provide a typescript SDK and have the exiting apps use that SDK. It's about a month away from V1 feature complete. I know you said you participation had ended, but based on your PR, perhaps you want to look and see if the approach is what you would expect: https://github.com/balzack/databag/tree/sdk/app/sdk |
Thanks, I'm glad you're up for looking at my PR. I'm a bit worried about how you're refactoring + moving to typescript + adding an sdk, all at the same time. I'll take a look |
Yes, it's basically a rewrite of the client code base, using the existing app as reference. I build a module of the SDK, and then the associated portion of the app. So far I am happy with the result, although I am sure there will be some regressions. I wouldn't look in too much detail, as there will be lots of changes before it's V1 complete. I felt your previous high level guidance was very valuable. refactored web app: https://github.com/balzack/databag/tree/sdk/app/client/web |
I'd like to use this project in a different project, I'd need to build an sdk based off the app/mobile/src/api files. Even then I'd be coding in the dark without types. A good first step would be to move to Typescript.
The text was updated successfully, but these errors were encountered: