mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 16:53:19 +08:00
65 lines
2.7 KiB
JSON
65 lines
2.7 KiB
JSON
{
|
|
"name": "@stacks/blockchain-api-client",
|
|
"version": "0.1.2",
|
|
"access": "public",
|
|
"description": "Client for the Stacks Blockchain API",
|
|
"homepage": "https://github.com/blockstack/stacks-blockchain-api/tree/master/client#readme",
|
|
"author": "Blockstack PBC <engineering@blockstack.com> (https://blockstack.org)",
|
|
"license": "GPL-3.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/blockstack/stacks-blockchain-api.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/blockstack/stacks-blockchain-api/issues"
|
|
},
|
|
"main": "lib/index.js",
|
|
"unpkg": "lib/index.umd.js",
|
|
"scripts": {
|
|
"prepublishOnly": "npm run build",
|
|
"postinstall": "npx shx find lib/index.js || 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 test/test.ts",
|
|
"lint": "eslint . --ext .ts -f codeframe",
|
|
"lint:prettier": "prettier --check ./src/**/*.{ts}",
|
|
"open": "http-server -o 9222 -o index.html",
|
|
"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",
|
|
"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",
|
|
"generate:docs": "typedoc"
|
|
},
|
|
"prettier": "@blockstack/prettier-config",
|
|
"files": [
|
|
"src",
|
|
"lib"
|
|
],
|
|
"dependencies": {
|
|
"@blockstack/stacks-blockchain-api-types": "^0.34.1",
|
|
"@types/ws": "^7.4.0",
|
|
"cross-fetch": "^3.0.6",
|
|
"eventemitter3": "^4.0.4",
|
|
"jsonrpc-lite": "^2.2.0",
|
|
"ws": "^7.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@apidevtools/swagger-cli": "^4.0.4",
|
|
"@stacks/eslint-config": "^1.0.7",
|
|
"@blockstack/prettier-config": "0.0.6",
|
|
"@openapitools/openapi-generator-cli": "^2.1.7",
|
|
"@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.4",
|
|
"prettier": "^2.0.5",
|
|
"rimraf": "^3.0.2",
|
|
"shx": "^0.3.2",
|
|
"ts-node": "^8.10.2",
|
|
"typedoc": "^0.18.0",
|
|
"typescript": "^3.9.7"
|
|
}
|
|
}
|