-
Notifications
You must be signed in to change notification settings - Fork 15
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
Draft: Port demos to TypeScript #201
base: main
Are you sure you want to change the base?
Conversation
To work with this version of the demos while hacking on Workbench, you can bind mount it. For example, sudo mount --bind /path/to/cloned/demos /path/to/Worbench |
Currently all the demos are ported 🥳. However, some demos have Now it's time for rebase, and working on other steps. |
a00b394
to
c341532
Compare
@vixalien Why do you use |
Yeah we should use that everywhere. I used the former method when I was getting started on this, since I didn't know the latter was possible. |
I'll add a commit tomorrow, if you don't beat me to it. |
The "my_custom_class" style was unused, but was meant to style the last label
Done using `find src/ -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;`
included in-tree for now. might need to look for long-lasting solution
c341532
to
e41f55e
Compare
@sonnyp I have been brought to the attention of |
@vixalien I fixed all the places I could find, that were still not using the generic get_object. But I didn't test it 😅 |
I had already pushed the changes and you force pushed the branch 🙈🙊 |
@vixalien I didn't do a force push. According to GitHub I added the commits - "UrtsiSantsi added 12 commits", "UrtsiSantsi added 28 commits", while when you force pushed earlier it is "vixalien force-pushed the wip/vixalien/typescript branch from e41f55e to aeea1bf". My changes are on top of your changes - you fixed the case where the pattern |
Oh, I see. I actually left out those cases, but I was just being lazy 😆. Thanks! I will need to rebase them so that we have a singular commit for each file. i.e. "port: Camera", "port: Welcome" etc... but don't worry about it. I've also gone and enabled strict mode, which now causes a few more errors to pop in. You can run |
@vixalien don't worry about commit history, I'll squash everything when merging Individual commits won't be helpful. |
They should be in Workbench since that's the runtime.
Ditto
👍
This looks interesting for “compiling” ts files before running. But we still need a solution to compile ts files to js for humans. |
Actually we could also use ts-blank-space and simplify process the result with prettier. |
I think we should leave java script as a language option:
|
Sure. I'll work on it next. |
@UrtsiSantsi that's the idea 👍 |
This is my attempt to porting demos from javascript to workbench.
Groundwork
.js
to.ts
. I will be running the TypeScript compiler (withtsc
) to fix demo files as we go.README.typescript.md
showing basic instructions on how I generated the typestsconfig.json
fileworkbench-types
Future tasks
.ts
filesPorted demos