@stacks/blockchain-api-client

v0.29.3
Client for the Stacks Blockchain API

lint

eslint . --ext .ts -f codeframe

open

http-server -o 9222 -o index.html

test

ts-node test/test.ts

build

rimraf ./lib && npm run generate-openapi && npm run build:node && npm run build:browser

build:node

tsc

postinstall

npx shx find lib/index.js || npm run build

prep-openapi

rimraf ./.tmp && rimraf ./src/generated && swagger-cli bundle --dereference -o ./.tmp/openapi.json ../docs/openapi.yaml && shx sed -i '^.*\$schema.*$' '' ./.tmp/openapi.json

build:browser

microbundle -i src/index.ts -o lib/index.umd.js --no-pkg-main -f umd --external none --globals none --tsconfig tsconfig.browser.json --name StacksBlockchainApiClient

generate:docs

typedoc

lint:prettier

prettier --check ./src/**/*.{ts}

prepublishOnly

npm run build

generate-openapi

npm run prep-openapi && openapi-generator generate --skip-validate-spec -g typescript-fetch --additional-properties=typescriptThreePlus=true,supportsES6=true,legacyDiscriminatorBehavior=false,enumPropertyNaming=original,modelPropertyNaming=original -i ./.tmp/openapi.json -o ./src/generated
npm i @stacks/[email protected]

Metadata

  • GPL-3.0
  • Whatever
  • Blockstack PBC
  • released 11/10/2020

Downloads