项目作者: johnbroaddusivccv

项目描述 :
Node/Express/TypeScript/Nodemon environment with TS-Node
高级语言: TypeScript
项目地址: git://github.com/johnbroaddusivccv/typescriptSetup.git
创建时间: 2020-02-05T21:48:05Z
项目社区:https://github.com/johnbroaddusivccv/typescriptSetup

开源协议:

下载


TypeScript Setup

Node/Express/TypeScript/Nodemon environment with TS-Node

Installation && Usage

  1. git init
  1. git clone https://github.com/johnbroaddusivccv/typescriptSetup.git
  1. cd typescriptSetup/

Use the package manager npm to install the dependencies, which in this case is only express

I suggest installing TypeScript globally

  1. npm install -g typescript
  1. npm i

We also install TypeScript Locally in our Project, along with Dev Dependencies.

  1. npm i -D typescript ts-node nodemon @types/node @types/express

Additional

if the following is not working for you after typescript is global installed

  1. tsc --version

Install npx to get around it

  1. npm i npx
  1. npx tsc --version

Notice the build script is using npx to run tsc

  1. "npx tsc -p ."

License

MIT