Skip to content

Typescript Node starter that is compatible and configured to permit top-level await for Node, Jest and Nodemon.

Notifications You must be signed in to change notification settings

kdrzymalski/top-level-await

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Top-level Await in Typescript

This is a starter repo that enables you to start using top-level await in Typescript, and it's compatible and configured to work with Jest and Nodemon as well. This example only includes the minimal configuration changes to show how to make this languge feature work. It doesn't include Express or Next.js or any other framework, just a Node example. This way you should be able to integrate the changes better in your existing project. Check my blog post here to read a walk-through.

Getting started

  • Clone the repository
git clone --depth=1 https://github.com/Microsoft/TypeScript-Node-Starter.git <project_name>
  • Install dependencies
cd <project_name>
npm install
  • Run server locally
npm run dev
  • Build and run the project
npm run build
npm start

About

Typescript Node starter that is compatible and configured to permit top-level await for Node, Jest and Nodemon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%