bitcoin-ts

v1.0.1
a typescript bitcoin library

info

npm-scripts-info

compile:wasm

docker build . -t bitcoin-ts-wasm && docker run -it --mount type=bind,src=$(pwd)/src/lib,dst=/bitcoin-ts/out,consistency=delegated bitcoin-ts-wasm

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:secp256k1-wasm

copy:secp256k1-wasm

cpy src/lib/bin/secp256k1/secp256k1.wasm build/main/lib/bin/secp256k1 && cpy src/lib/bin/secp256k1/secp256k1.wasm build/module/lib/bin/secp256k1

debug:compile-wasm

docker run -it bitcoin-ts-wasm bash

debug:inspect-wasm

wasm2wat src/lib/bin/secp256k1/secp256k1.wasm > src/lib/bin/secp256k1/secp256k1.wat && prettier --write src/lib/bin/secp256k1/secp256k1.js

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/ --target ES6 --mode file --out build/docs

doc:json

typedoc src/ --target ES6 --mode file --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

Metadata

  • MIT
  • >=8.9
  • Unknown
  • released 5/29/2018

Downloads

Maintainers