info
npm-scripts-info
compile:secp256k1
docker build -f wasm/docker/secp256k1.Dockerfile . -t libauth-secp256k1 && docker run -it --mount type=bind,src=$(pwd)/src/lib,dst=/libauth/out,consistency=delegated libauth-secp256k1
compile:hashes
docker build -f wasm/docker/hashes.Dockerfile . -t libauth-hashes && docker run -it --mount type=bind,src=$(pwd)/src/lib,dst=/libauth/out,consistency=delegated libauth-hashes
build
run-s clean && run-p build:*
build:main
tsc -p tsconfig.json
build:module
tsc -p config/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 libauth-secp256k1 bash
compile:debug:hashes
docker run -it libauth-hashes bash
fix
run-s fix:*
fix:prettier
prettier "src/**/*.ts" --write
fix:lint
eslint . --ext .ts --fix
test
run-s build test:*
test:deps
node -e "if(Object.keys(require('./package.json').dependencies).length > 0) { console.error('Dependencies are not allowed.'); process.exit(1); }"
test:lint
eslint . --ext .ts
test:prettier
prettier "src/**/*.ts" --list-different
test:spelling
cspell "{README.md,.github/*.md,src/**/*.ts}"
test:unit
nyc --silent ava
test:unit:fast
nyc --silent ava --match='!*[fast-check]*' --match='!*[crypto]*' --match='!*[script_tests]*' --match='!*[signing-serialization tests]*' --match='!*[BCH compiler]*' --match='!*[BCH VM]*'
test:unit:fast-check
nyc --silent ava --match='*[fast-check]*
test:unit:script_tests
nyc --silent ava --match='*[script_tests]*' --verbose --serial
bench
run-s build bench:browser-deps bench:test
bench:test
ava --config .ava.bench.config.js --serial --timeout=2m
bench:browser-deps
browserify node_modules/chuhai/index.js --standalone chuhai -o build/bench/chuhai.js && browserify node_modules/hash.js/lib/hash.js --standalone hash -o build/bench/hash.js
watch
run-s clean build:main build:wasm && yarn build:main -- -w
watch:module
run-s clean build:main build:wasm && yarn build:module -- -w
watch:single
echo 'Usage: yarn watch:single --match="*pattern*"' && ava -v --watch
watch:test
yarn test:unit:fast -- --watch -v
watch:test-slow
yarn test:unit -- --watch -v
cov
run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html
cov:html
nyc report --reporter=html
cov:lcov
nyc report --reporter=lcov
cov:send
run-s cov:lcov && codecov
cov:check
nyc report && nyc check-coverage --lines 85 --functions 80 --branches 65
doc
run-s doc:html && open-cli build/docs/index.html
doc:cname
node -e "console.log('libauth.org')" > build/docs/CNAME
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:next
run-s build doc:extract doc:generate
doc:extract
api-extractor run --local --typescript-compiler-folder node_modules/typescript
doc:generate
api-documenter markdown -i temp -o docs/markdown
doc:check-api
api-extractor run --typescript-compiler-folder node_modules/typescript
doc:publish
gh-pages -m "[ci skip] Updates" -d build/docs
doc:generate-json-schema
ts-json-schema-generator --path 'src/lib/template/template-types.ts' --type 'AuthenticationTemplate' > src/lib/template/bitauth-authentication-template.schema.json
doc:generate-templates
node 'build/main/lib/transaction/fixtures/generate-templates.spec.helper.js' 'p2pkh' > src/lib/transaction/fixtures/templates/p2pkh.json && node 'build/main/lib/transaction/fixtures/generate-templates.spec.helper.js' '2-of-3' > src/lib/transaction/fixtures/templates/2-of-3.json && node 'build/main/lib/transaction/fixtures/generate-templates.spec.helper.js' '2-of-2-recoverable' > src/lib/transaction/fixtures/templates/2-of-2-recoverable.json && node 'build/main/lib/transaction/fixtures/generate-templates.spec.helper.js' '1-of-8-tree' > src/lib/transaction/fixtures/templates/1-of-8-tree.json && node 'build/main/lib/transaction/fixtures/generate-templates.spec.helper.js' 'sig-of-sig' > src/lib/transaction/fixtures/templates/sig-of-sig.json && node 'build/main/lib/transaction/fixtures/generate-templates.spec.helper.js' 'cash-channels' > src/lib/transaction/fixtures/templates/cash-channels.json && prettier 'src/lib/transaction/fixtures/templates/*.json' --write
version
standard-version
reset
git clean -dfx && git reset --hard && yarn
clean
trash build test
prepare-release
run-s reset test cov:check doc:html doc:cname version doc:publish