pretest
npm run build
test
npm run test-only --
posttest
npm run lint
test-only
mocha --reporter spec --full-trace dist/tests/tests.js
test-watch
mocha --reporter spec --full-trace dist/tests/tests.js --watch
coverage
istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace dist/tests/tests.js
postcoverage
remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info
lint
tslint --type-check -p tsconfig.json src/*.ts && tslint --type-check -p tsconfig.json tests/*.ts
prebuild
npm run clean:dist
build
tsc
postbuild
cp -R ./dist/src/. ./lib
watch
tsc -w
clean
npm run clean:dist && npm run clean:coverage
clean:dist
rimraf dist/* && rimraf lib/*
clean:coverage
rimraf coverage/*
prepublishOnly
npm run clean && npm run build