Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 886 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 886 Bytes

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