bitgo
v6.0.0-alpha.2 bitgo bitcoin bitgojs
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
webpack --progress --colors --env.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
unit-test
nyc -- mocha --opts test/mocha.opts "test/unit/*.ts" "test/unit/**/*.ts" "test/v2/unit/*.ts" "test/v2/unit/**/*.ts"
compile-dbg
webpack --progress --colors --env.dev
compile-test
webpack --progress --colors --env.test
gen-coverage
nyc report --reporter=text-lcov > coverage.lcov
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
browserify-sjcl-bitgo
browserify ./example/sjcl_bitgo.js -s SJCLBitGo -o ./sjcl-bitgo.js