TypeScript example boilerplate describing a modern tool pipeline.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
API-Docs
test
.gitignore
.nojekyll
.travis.yml
README.md
index.js
install.sh
math.d.ts
math.ts
package.json
tsconfig.json
yarn.lock

README.md

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/