bitgo
v8.2.3 bitgo bitcoin bitgojs
fmt
prettier --write '{src,test}/**/*.{ts,js,json}'
lint
eslint 'src/**/*.ts' && eslint 'test/**/*.ts' || true
test
npm run unit-test
audit
if [ "$(npm --version | cut -d. -f1)" -ge "6" ]; then npm audit; else echo "npm >= 6 required to perform audit. skipping..."; fi
build
tsc && node scripts/copySjcl.js
clean
rm -r dist/*
compile
npm run browserify && npm run webpack-prod
prepare
npm run build
babelify
mkdir -p browser && ./node_modules/.bin/browserify ./dist/src/index.js --exclude superagent-proxy --exclude morgan -t babelify -s BitGoJS -o browser/BitGoJS-babelify.js
gen-docs
typedoc
check-fmt
prettier --check '{src,test}/**/*.{ts,js,json}'
precommit
lint-staged
unit-test
nyc -- mocha --opts test/mocha.opts "test/unit/*.ts" "test/unit/**/*.ts" "test/v2/unit/*.ts" "test/v2/unit/**/*.ts"
browserify
mkdir -p ./dist/browserify && browserify ./dist/src/index.js --exclude **/superagent-proxy --exclude morgan -s BitGoJS -o ./dist/browserify/BitGoJS.browserify.js
unprettied
grep -R -L --include '*.ts' --include '*.js' --include '*.json' '@prettier' src test
compile-dbg
npm run browserify && npm run webpack-dev
upload-docs
node scripts/upload-docs.js
webpack-dev
webpack --progress --colors --env.dev
compile-test
npm run browserify && npm run webpack-test
gen-coverage
nyc report --reporter=text-lcov > coverage.lcov
webpack-prod
webpack --progress --colors --env.prod
webpack-test
webpack --progress --colors --env.test
prepublishOnly
npm run compile
upload-coverage
codecov -f coverage.lcov -t "$CODECOV_TOKEN" -F "$npm_package_name"
integration-test
nyc -- mocha --opts test/mocha.opts "test/v2/integration/**/*.ts"
upload-artifacts
node scripts/upload-test-reports.js