dev
npm test -- -w
lint
eslint lib tests
test
npm run test:unit --
test:ci
npm run coverage:all && npm run report -- -r lcov
test:all
npm run test:run tests && npm run report -- -r html
test:run
NODE_ENV=test _mocha --exit --recursive -bR spec
test:unit
npm run test:run tests --
coverage
nyc --silent -x dist -x '**/tests/**' -x '**/*.test.js'
coverage:all
npm run coverage -- npm run test:all
coverage:unit
npm run coverage -- npm run test:unit
codecov
codecov --file=coverage/lcov.info -e TRAVIS_NODE_VERSION
report
nyc report
build
NODE_ENV=production npm run build:all
build:all
npm run build:cjs && npm run build:esm && npm run build:umd
build:lib
esbuild lib/index.js --bundle
build:cjs
npm run build:lib -- --format=cjs --outfile=dist/wargs.cjs
build:esm
npm run build:lib -- --format=esm --outfile=dist/wargs.mjs
build:umd
npm run build:lib -- --platform=browser --outfile=dist/wargs.js --global-name=wargs
prepublish
npm run build
pretest
npm run lint