mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 16:53:19 +08:00
51 lines
2.0 KiB
JSON
51 lines
2.0 KiB
JSON
{
|
|
"name": "@stacks/blockchain-api-client",
|
|
"version": "0.1.0",
|
|
"access": "public",
|
|
"description": "TypeScript client for the Stacks Blockchain API",
|
|
"main": "lib/index.js",
|
|
"unpkg": "lib/index.umd.js",
|
|
"scripts": {
|
|
"prepublishOnly": "npm run build",
|
|
"build": "rimraf ./lib && npm run generate-openapi && npm run build:node && npm run build:browser",
|
|
"build:node": "tsc",
|
|
"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",
|
|
"test": "ts-node src/test.ts",
|
|
"open": "http-server -o 9222 -o index.html",
|
|
"prep-openapi": "rimraf ./.tmp && swagger-cli bundle --dereference -o ./.tmp/openapi.json ../docs/openapi.yaml && shx sed -i '^.*\\$schema.*$' '' ./.tmp/openapi.json",
|
|
"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"
|
|
},
|
|
"author": "@blockstack",
|
|
"license": "ISC",
|
|
"prettier": "@blockstack/prettier-config",
|
|
"files": [
|
|
"./src",
|
|
"./lib"
|
|
],
|
|
"dependencies": {
|
|
"@blockstack/stacks-blockchain-api-types": "^0.5.3",
|
|
"@types/ws": "^7.2.6",
|
|
"cross-fetch": "^3.0.5",
|
|
"eventemitter3": "^4.0.4",
|
|
"jsonrpc-lite": "^2.1.1",
|
|
"ws": "^7.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@apidevtools/swagger-cli": "^4.0.4",
|
|
"@blockstack/prettier-config": "0.0.6",
|
|
"@openapitools/openapi-generator-cli": "^1.0.15-4.3.1",
|
|
"@typescript-eslint/eslint-plugin": "^3.9.1",
|
|
"@typescript-eslint/parser": "^3.9.1",
|
|
"eslint": "^7.7.0",
|
|
"eslint-config-prettier": "^6.11.0",
|
|
"eslint-plugin-prettier": "^3.1.4",
|
|
"http-server": "^0.12.3",
|
|
"microbundle": "^0.12.3",
|
|
"prettier": "^2.0.5",
|
|
"rimraf": "^3.0.2",
|
|
"shx": "^0.3.2",
|
|
"ts-node": "^8.10.2",
|
|
"typescript": "^3.9.7"
|
|
}
|
|
}
|