DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Node/TypeScript Template
Manav Misra
Manav Misra

Posted on • Updated on

Node/TypeScript Template

Update #2: I am continually making updates to this template repo, so just keep checking and/or star/watch the repo!

Update: I made the 'tsconfig' more 'strict.'

TLDR

Welp, if you follow me here you pretty much already know the drill!

  1. Jump to the repo
  2. Click 'use this template'
  3. clone
  4. npm i
  5. 2 terminals: 1 is for npm run watch npm run webpack and the other is npm start.

What's It All About?

As with 'tinkering' with any tech as a beginner, it's nice to be able to jump right in and code without having to worry about tooling.

So, once again, I have assembled an 'opinionated' (but not really 'my' opinions) template repo.

You should just go read the README.


As you code starting in 'src/index.ts', webpack will 'compile/transpile' into 'dist.' Meanwhile, nodemon will pick up this change and run your stuff.

All the while, your code will be linted by airbnb and 'prettification' will also be automated.

There's a bunch of helpful VS Code settings and extensions pre-configured also.

So, if you're a beginner to this stuff, this will probably be a great way to keep yourself in check with regard to code quality, so you can focus more on learning and less on tooling.

You should join the discussions here.

Unimportant After Thought πŸ’­

Ordinarily, people say something like, 'Happy Coding!' at the end of these things. IDGI - I'm usually not 'happy coding.' I'm usually 🀬 at πŸ›s and figuring πŸ˜– stuff out. But...I am 'happy' when the stuff starts working! πŸ‘πŸΎπŸ€“

πŸ€·πŸΎβ€β™‚οΈ

Top comments (0)

πŸ€” Did you know?

Β 

️⃣ DEV has a variety of tags to help you find the content you like. Find and follow your favorite tags