@stacks/blockchain-api-client
v0.34.2lint
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-temp.json ../docs/openapi.yaml && shx sed -i '^.*\$schema.*$' '' ./.tmp/openapi-temp.json > ./.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 && npx @openapitools/openapi-generator-cli generate --skip-validate-spec -g typescript-fetch --additional-properties=withInterfaces=true,typescriptThreePlus=true,supportsES6=true,legacyDiscriminatorBehavior=false,enumPropertyNaming=original,modelPropertyNaming=original -i ./.tmp/openapi.json -o ./src/generated > ./.tmp/gen.log
npm i @stacks/[email protected]
Metadata
- GPL-3.0
- Whatever
- Blockstack PBC
- released 11/30/2020