You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.
Most folks will want to write all their code in TypeScript. Especially if there's more going on than just configuring remix. In my case, I use HTTP mocks in dev mode and I want that code in TypeScript. I'd love it if remix could help me with this since it's compiling everything else for me. Just feels like a poor DX experience to have to do something extra to get this working when none of my other code needs extra tooling figured out.
The text was updated successfully, but these errors were encountered:
Oh yeah, for sure, I agree it should be an option not a mandate. 👍 Having TS be the default seems fine to me though. I agree that a mandate wouldn't be good.
Thanks for the issue, but we are archiving this repo. We have a new npm init remix command that we are recommending people use to get started instead of the starter repos, so I'm closing all the issues here.
For now, the server.js file is outside the scope of our responsibilities. Remix takes care of the app folder, everything else is your job. This is consistent with our philosophy of letting you own your entry points, except this one feels different because it's your server entry point. If you want to call it server.ts, I think you can go ahead and do that and maybe use something like ts-node to run your app, but I've never done it. I usually just plop a few JSDoc comments in my .js files these days to get some nice type hints, so you might try that too.
Most folks will want to write all their code in TypeScript. Especially if there's more going on than just configuring remix. In my case, I use HTTP mocks in dev mode and I want that code in TypeScript. I'd love it if remix could help me with this since it's compiling everything else for me. Just feels like a poor DX experience to have to do something extra to get this working when none of my other code needs extra tooling figured out.
The text was updated successfully, but these errors were encountered: