earljs

v0.0.13
Ergonomic, modern and type-safe assertion library
assertions modern mocha chai jest typescript

start

ts-node -T ./src/index.ts

format

prettier --check "./**/*.{ts,md}"

format:fix

prettier --write "./**/*.{ts,md}"

lint

eslint --ext .ts src test

lint:fix

yarn lint --fix

typecheck

tsc --noEmit

clean

rm -rf dist

build

tsc -p ./tsconfig.prod.json

build:watch

tsc -p ./tsconfig.prod.json --watch

test

mocha --config ./test/.mocharc.js

test:fix

yarn lint:fix && yarn format:fix && yarn test && yarn typecheck

prepublishOnly

yarn lint && yarn format && yarn test && yarn typecheck && yarn build

Metadata

  • MIT
  • Whatever
  • Kris Kaczor
  • released 7/4/2020

Downloads

Maintainers