Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.04 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.04 KB

TS-Example

This repository is meant to be a starting point for the enterprising Typescript developer.

It showcases the following tooling.

  • yarn as a blazing fast, featureful alternative to NPM

  • TypeDoc to create API documentation

    • note: currently, TypeDoc is incompatible with Typescript@^2.x.x.
      The provided install.sh script therefore installs a global copy of
      Typescript 2.1.6. Unfortunately this behaviour breaks npm posttest hooks,
      thus TypeDoc would have to be run manually.
  • TypeScript compilation and .d.ts definition generation.

  • Jest. A modern, well integrated test framework with optional Typescript
    support (provided through ts-jest) and coverage reporting.

    The file index.js includes a simple, node compatible example of how one
    may import and consume a Typescript => ES6/CommonJS compiled module.

    npm test manually runs Jest and produces a full lcov coverage report.

    typedoc -out API_Docs generates the API documentation inside API_Docs/