-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
DevEx improvements #156
Comments
Another thing: I hit GH rate limits bisecting tests and now I can't run them at all. |
Hi @lishaduck! Thanks for all the PRs! I'll be away at Elm Camp this week, I'll try to review them when I can, sorry if there's a bit of delay in handling them!
In some projects, I use I don't know
That sounds good to me. The main reason why I didn't want to convert the JS source (not type) files to JS is because I don't want to bang my head in debugging only because I forgot to re-compile JS code. I hadn't thought (also, not felt the need) about writing the types in As for using As for development Node version, in practice the development version now has to be
The really slow part of the tests is the I am not against using vitest instead of Jest tests though, but I'm also not seeing a big reason for it (unless it is really much faster).
You can run You can also put the environment variable in your |
Have fun!
It's essentially a finer-grained npm-run-all. I'd seen that npm-run-all had some compatibility issues last time I looked at it, which is why I use Turbo, but it shouldn't make a difference in a non-monorepo setting.
I'll go ahead and switch it sometime.
Certainly! As I'd said, I don't think it's necessary, but if JSDoc got too terribly verbose, you could use a bundler for the npm tarball.
I don't think so. If
Ok! Maybe someday, but I'd agree that it's not worthwhile at this point. Parallelizing it should help.
Ah. Thanks a ton! For future folks, I might put that in CONTRIBUTING.md somewhere. Then again, I don't know how common it is to run into it 🤷♂️ |
I take that back. npm-run-all only works half the time for me. |
A PSA: Important The TS compiler option |
Another testing thing I ran into with #166 is that elm-review parses jest flags as it's own. This is a bug, and should get fixed so that we can test for memory leaks with |
That's super weird. Great catch! |
Another weird testing thing (this time in the shell script): it doesn't clear temp files if you ^C, which makes sense, but then it errors b/c they're still there. |
Moved remaining comments to #169. |
Hi, @jfmengels! First off, thanks for elm-review! It's super useful and I use it whenever I write Elm. It's just great.
I've been getting used to the codebase, and I had a few thoughts:
turbo
instead ofnpm run
. Turbo is a faster, parallel task runner written in Rust by the Vercel team. It'd help speed upnpm run test
, which is pretty slow on my machine..ts
, not.d.ts
. I respect that you don't want to write this in TypeScript, that's completely fair! However,.d.ts
is a compiled output format that shouldn't be manually written, per the typescript team. I'd switch the extensions (just for the types, not the source.1)I'd be happy to do all this, 1 and 2 are trivial and are directly annoying me, so I'm motivated 😄
Footnotes
If you're fine with bumping development Node to
^18.18.0 || >=20.6.0
,tsx
can run TS natively, likets-node
but better. It would make predicates format a lot nicer, but that's a pretty weak reason so I don't think it's necessary. ↩The text was updated successfully, but these errors were encountered: