Files
stacks-blockchain-api/client/package.json
2020-10-02 16:55:56 +02:00

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.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",
"generate:docs": "typedoc"
},
"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.2.0",
"ws": "^7.3.1"
},
"devDependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
"@blockstack/eslint-config": "^1.0.5",
"@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",
"typedoc": "^0.18.0",
"typescript": "^3.9.7"
}
}