/sonar-ts-demo

SonarQube Typescript Demo

Primary LanguageTypeScriptMIT LicenseMIT

sonar-ts-demo

SonarSource recently released an official first version of a static code analyzer for TypeScript. So if you want to get up and running with SonarQube and Typescript: now you have an easy way to do this.

The supported scenarios are:

  • Run SonarTS as a TSLint extensionRun
  • SonarTS as a SonarQube plugin.

More info: Getting started with SonarQube and TypeScript

And for the code coverage part: Better Together: SonarQube, TypeScript and Code Coverage

To setup the demo:

npm install

To run the TSLint demo:

npm run lint

To build and run the Karma test demo:

npm run build

npm run test

To run the SonarQube demo:

Edit the gulpfile.js to point to the correct SonarQube instance

npm run sonar