Skip to content

Boilerplate for manually setting up a NodeJS project that uses TypeScript.

Notifications You must be signed in to change notification settings

waqas-syed/typescript-manual-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-manual-starter

Boilerplate for manually setting up a NodeJS project that uses TypeScript.

TypeScript code is run directly without waiting for it to be compiled using ts-node and changes are watched by nodemon.

Run project for local development

We have 2 options. Hot realoding while executing TypeScript directly is supported in both cases:

  1. ts-node runs TypeScript directly while nodemon watches for changes

npm run start:dev

  1. ts-node-dev runs TypeScript directly.

npm run start:ts-dev

Build for production

Clean the destination build folder build and emit new code.

npm run build

Production Startup Command

This will clean the build folder, compile the code to JS for production and run the Javascript compiled from TypeScript.

npm run start

Credit: https://khalilstemmler.com/blogs/typescript/node-starter-project/

About

Boilerplate for manually setting up a NodeJS project that uses TypeScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published