tscoverage/docs/index.md

2.8 KiB

name description
Index best practice npm TypeScript modules

npmts

best practice npm TypeScript modules

Availabililty

npm git git docs

Status for master

build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Quick Demo

asciicast

Usage

NPMTS is your friend when writing, testing, publishing and documenting npm modules written in TypeScript.

npmts will

  1. check your dependencies and package.json (unused, missing, updates, security)
  2. transpile your code with tsc,
  3. test your code with tap (supports the fancy stuff like Promises, Generators, async/await, sourcemaps, parallel test execution in child processes)
  4. create coverage with istanbul (supports tracing of the originating TypeScript)

For more information on how tests are run check out the tapbuffer module.

This works on your machine and in CI. There is a prebuild docker image available that includes npmts to make CI a breeze:
hosttoday/ht-docker-node:npmts on Dockerhub

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer