TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you set up a new TypeScript project for Node.js?

4 pointsby lovingCranberryabout 3 years ago
I always find me setting up typescript by hand when creating a new project.<p>This includes writing a nodemon-startup script in ``package.json``, setting an export for ``dist&#x2F;index.js``, setting the type to module, tweaking ``tsconfig.json`` to support ES2020 or newer etc.<p>Is there any sane boiler plate which you use? For next.js, CRA and other web framework stuff countless typescript boilerplates exist, but I have yet to find anything which works for &quot;normal&quot; node.js projects.

2 comments

ss108about 3 years ago
I just copy and paste from old projects like a clown.<p>Maybe this would be a good portfolio project thing for me to build.
me_me_mu_muabout 3 years ago
Same here. I have a scaffold I use, with a tsconfig and some other common boilerplate.<p>Personally I avoid using big frameworks like nest, etc. and just use my simple boiler plate and add functionality I&#x27;ll need.<p>Most of the boilerplate I&#x27;ve seen on github are (imo) awfully bloated.