Skip to content

Commit 882c22f

Browse files
committed
refactor: move openapi client generation into separate directory
1 parent 6eda93d commit 882c22f

37 files changed

+763
-661
lines changed

client/package-lock.json

Lines changed: 567 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@stacks/blockchain-api-client",
3+
"version": "0.1.0",
4+
"access": "public",
5+
"description": "TypeScript client for the Stacks Blockchain API",
6+
"main": "index.d.ts",
7+
"scripts": {
8+
"build": "rimraf ./lib && tsc",
9+
"test": "ts-node src/test.ts",
10+
"prep-openapi": "swagger-cli bundle --dereference -o ./.tmp/openapi.json ../docs/openapi.yaml && sed -i.bak '/$schema/d' ./.tmp/openapi.json",
11+
"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"
12+
},
13+
"author": "@blockstack",
14+
"license": "ISC",
15+
"files": [
16+
"./src",
17+
"./lib"
18+
],
19+
"dependencies": {
20+
"cross-fetch": "^3.0.5"
21+
},
22+
"devDependencies": {
23+
"@apidevtools/swagger-cli": "^4.0.4",
24+
"@openapitools/openapi-generator-cli": "^1.0.15-4.3.1",
25+
"rimraf": "^3.0.2",
26+
"ts-node": "^8.10.2",
27+
"typescript": "^3.9.7"
28+
}
29+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)