Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 834 Bytes

README.md

File metadata and controls

53 lines (35 loc) · 834 Bytes

Boilerplate for TypeScript development

A Boilerplate for TypeScript development with Node.js. You can use Visual Studio Code for debug the code.

Quickstart

You need to install Node.js before test the code.

1.Install tools

npm install -g typescript

npm install -g typings

npm install -g gulp

npm install -g mocha

npm install -g istanbul

2.Install related node_mosules

npm install

3.Install typefiles for TypeScript

typings install

4.Build

npm run build

5.Start using npm

npm start

You can also run and debug the code using Visual Studio Code.

Other commands

Test

npm test

Show test coverage

npm run test-coverage

Build

gulp build

Build with watch

gulp watch

Clean

gulp clean

Rebuild

gulp rebuild

Build typescript definitions

gulp build-ts-def