-
Notifications
You must be signed in to change notification settings - Fork 14
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
Convert modulify-generated files to TypeScript #1218
Comments
This issue will take longer since we will want to track the js=>ts changes as renames, not as delete/creates. |
I personally do not think we need to keep git history for these generated files. Git history for the asset itself (the image/mp3/etc) would be more important. I'm happy to be outvoted though. |
I accept the vote above that we should not devote time to maintaining the history as renames for JS=>TS. However, I realized we still need to expend about as much effort to delete the former JS files. So I think they can be renamed like so: execute( 'git', [ 'mv', path.basename( jsFilePath ), path.basename( tsFilePath ) ], path.dirname( jsFilePath ) ); |
I posted to slack:
|
In the course of working on this issue, I tested the image files and discovered that in a TypeScript sim, it correctly infers the HTMLImageElement type from both *.js and *.ts image files. Also, no changes or type annotations are required in the image files. Therefore the value of this step is questionable--might it slow down the type checker? Still, it seems we agreed on this for consistency and we will get more benefit out of the more complex modulified types. |
I
I changed the output of Current status:Output ts
Still in js
I am uncertain whether the value will exceed the effort for converting shaders and sounds, let's assign to @jonathanolson and @jbphet about those steps and see if they would like to work on it. |
Side note: All repos will get a |
I also ran |
@AgustinVallejo is my-solar-system's PathsPainter (.shader and .vert, under shaders/) being used? It looks vestigial. I've also removed the files needing transpilation in alpenglow, and I don't think we have '.glsl' suffix files, so I'm hoping we can just remove support for shader transpilation. (The alpenglow approach won't rely on the transpiler for this at all). Also, my personal opinion is that it would be nice to move the sound files to |
Note to self: If I work on this, it might be a good time to also try and tackle phetsims/tambo#153. |
From TypeScript meeting today, @samreid volunteered to take the lead. Thanks!
The text was updated successfully, but these errors were encountered: