Skip to content
使用ts来发node程序的基本模板
TypeScript JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.editorconfig
.gitignore
README.md
jest.config.js
package.json
tsconfig.json
tslint.json

README.md

template-node-ts

node-ts项目的基本模板

$ npx ts-node ./src/index.ts
# 运行一个ts编写的程序

$ npm run serve
# 运行node程序

$ npm run dev
# 运行node程序并且热更新

$ npm run compiler
# 将TS编译成js

其他细节请移步wiki

You can’t perform that action at this time.