ts-valid

v1.0.12
A validation library designed to take full advantage of the TypeScript type system. All return types are inferred directly from the schema.
typescript validation inference schema types runtime

describe

npm-scripts-info

build

run-s clean && run-p build:*

build:main

tsc -p tsconfig.json

build:module

tsc -p tsconfig.module.json

fix

run-s fix:*

fix:prettier

prettier "src/**/*.ts" --write

fix:tslint

tslint --fix --project .

test

run-s build test:*

test:lint

tslint --project . && prettier "src/**/*.ts" --list-different

test:unit

nyc --silent mocha build/main/**/*.spec.js

watch

run-s clean build:main && run-p "build:main -- -w" "test:unit -- --watch"

cov

run-s build test:unit cov:html && open-cli coverage/index.html

cov:html

nyc report --reporter=html

cov:send

nyc report --reporter=lcov && codecov

cov:check

nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100

doc

run-s doc:html && open-cli build/docs/index.html

doc:html

typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs

doc:json

typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json

doc:publish

gh-pages -m "[ci skip] Updates" -d build/docs

version

standard-version

reset

git clean -dfx && git reset --hard && npm i

clean

trash build test

prepare-release

run-s reset test cov:check doc:html version doc:publish

preinstall

node -e "if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('ts-valid must be installed with Yarn: https://yarnpkg.com/')"

Metadata

  • MIT
  • >=8.9
  • Unknown
  • released 7/18/2019

Downloads

Maintainers