watchdog

v0.1.3
An Timer used to Detect and Recover from Malfunctions
watchdog timer

build

tsc --module esnext

clean

shx rm -fr dist/* bundles/*

dist

npm run clean && npm run build && npm run rollup && npm run dist:es6to5

dist:es6to5

tsc --out ./bundles/watchdog.umd.js --target es5 --allowJs bundles/watchdog.es6.umd.js --lib es6,dom

lint

echo tslint v`tslint --version` && tslint --project tsconfig.json --type-check "{bin,examples,src,tests}/**/*.ts" --exclude "tests/fixtures/**" --exclude "dist/" && npm run clean && tsc --noEmit

rollup

rollup -c

test

npm run lint && npm run test:unit

test:unit

blue-tape -r ts-node/register -r source-map-support/register "src/**/*.spec.ts" "tests/**/*.spec.ts"

test:npm

npm run dist && export TMPDIR=/tmp/watchdog-npm.$$ && mkdir $TMPDIR && npm pack && mv watchdog-*.*.*.tgz $TMPDIR && cp tests/fixtures/smoke-testing.js $TMPDIR && cd $TMPDIR && npm init -y && npm install watchdog-*.*.*.tgz && node smoke-testing.js

Metadata

Downloads