4 ms·
Here comes a question what many of the people reading the comments are thinking: As of November 2023, what is the canonical way to set up a Node project with T
by SnoozingBoa 3y ago
Here comes a question what many of the people reading the comments are thinking:
As of November 2023, what is the canonical way to set up a Node project with Typescript and hot reload?
Minimal setup with least amount of configs and tooling. I am not after any other tools like Bun.
- ycombinatornews 3y agoSnowpack, parcel, esbuild. Minimal setup each. YMMV based on how you plan to distribute the build results (package, site or app) after.
- vlod 3y agoMaybe I'm not getting it, but I just set up an express.js app this last weekend with nothing much more than tsc (typescript) and ts-node. Do you need all that other stuff for a simple node app?
- toastercat 3y agoYou are getting it. Use less and smaller tools if possible. And if you're on Node 18, node comes with a watch mode built in that you can leverage. You can alternatively use esbuild to handle the TypeScript compilation since it is faster than tsc for that, and just keep tsc around for the typechecker.
- toastercat 3y agoSnowpack has been unmaintained for years now, and its homepage actively recommends people switch to Vite.