sfmohassel / ts-node-template

A simple ts-node template with prettier, nvmrc and eslint

Home Page:https://sfmohassel.medium.com/typescript-node-get-started-project-template-ad0ba9a7a885

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ts-node-template

Screenshot 2022-07-18 234510

A simple npx template for typescript node applications with prettier, nvmrc, eslint and nodemon.

Features

  • Typescript
  • Eslint
  • Prettier formatting
  • Using NVM to fix node version to latest LTS version
  • Example .gitignore
  • Live reloading with nodemon

Publish

Usage

# make sure have node version > 16.x
# cd into your repository root
npm init -y
npx @saeidjoker/ts-node-template@latest

After that, you can test your app with this command

npm run start:dev

This will print hi on the console. You can change the contents of src/index.ts and save the file and the app will cold-reload :-)

Enjoy!

About

A simple ts-node template with prettier, nvmrc and eslint

https://sfmohassel.medium.com/typescript-node-get-started-project-template-ad0ba9a7a885


Languages

Language:JavaScript 99.7%Language:TypeScript 0.3%