Set up Typescript project - Tuong-Nguyen/Angular-D3-Cometd GitHub Wiki

Set up Node project for typescript

Typescript

  • Install typescript
npm install typescript --save

tsc --init

Typescript configuration is configured at tsconfig.json

  • Add script to compile typescript files
"scripts": {
    "compile": "tsc -p ."
  },

Compile script with command: npm compile

TSLint

TSLint is a tool for checking coding standard in TypeScript

  • Set up test:
npm install tslint --save

tslint --init