info
npm-scripts-info
compile:secp256k1
docker build -f wasm/docker/secp256k1.Dockerfile . -t bitcoin-ts-secp256k1 && docker run -it --mount type=bind,src=$(pwd)/src/lib,dst=/bitcoin-ts/out,consistency=delegated bitcoin-ts-secp256k1
compile:hashes
docker build -f wasm/docker/hashes.Dockerfile . -t bitcoin-ts-hashes && docker run -it --mount type=bind,src=$(pwd)/src/lib,dst=/bitcoin-ts/out,consistency=delegated bitcoin-ts-hashes
build
run-s clean && run-p build:*
build:main
tsc -p tsconfig.json
build:module
tsc -p tsconfig.module.json
build:wasm
run-p copy:wasm:secp256k1 copy:wasm:sha1 copy:wasm:sha256 copy:wasm:sha512 copy:wasm:ripemd160
copy:wasm:secp256k1
cpy src/lib/bin/secp256k1/secp256k1.wasm build/main/lib/bin/secp256k1 && cpy src/lib/bin/secp256k1/secp256k1.wasm build/module/lib/bin/secp256k1
copy:wasm:sha1
cpy src/lib/bin/sha1/sha1.wasm build/main/lib/bin/sha1 && cpy src/lib/bin/sha1/sha1.wasm build/module/lib/bin/sha1
copy:wasm:sha256
cpy src/lib/bin/sha256/sha256.wasm build/main/lib/bin/sha256 && cpy src/lib/bin/sha256/sha256.wasm build/module/lib/bin/sha256
copy:wasm:sha512
cpy src/lib/bin/sha512/sha512.wasm build/main/lib/bin/sha512 && cpy src/lib/bin/sha512/sha512.wasm build/module/lib/bin/sha512
copy:wasm:ripemd160
cpy src/lib/bin/ripemd160/ripemd160.wasm build/main/lib/bin/ripemd160 && cpy src/lib/bin/ripemd160/ripemd160.wasm build/module/lib/bin/ripemd160
compile:debug:secp256k1
docker run -it bitcoin-ts-secp256k1 bash
compile:debug:hashes
docker run -it bitcoin-ts-hashes bash
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 ava
test:nsp
nsp check
bench
run-s build bench:test
bench:test
ava --serial build/main/**/*.bench.js --verbose
watch
run-s clean build:main && run-p "build:main -- -w" "test:unit -- --watch"
cov
run-s build test:unit cov:html && opn coverage/index.html
cov:html
nyc report --reporter=html
cov:send
nyc report --reporter=lcov > coverage.lcov && codecov
cov:check
nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100
doc
run-s doc:html && opn build/docs/index.html
doc:html
typedoc src/index.ts --target ES6 --mode file --excludeNotExported --out build/docs
doc:json
typedoc src/index.ts --target ES6 --mode file --excludeNotExported --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 && yarn
clean
trash build test
all
run-s reset test cov:check doc:html
prepare-release
run-s all version doc:publish