https://github.com/basementstudio/b-gsdk
A GraphQL Codegen that outputs a TypeScript SDK.
https://github.com/basementstudio/b-gsdk
cli codegen graphql sdk typescript
Last synced: about 2 months ago
JSON representation
A GraphQL Codegen that outputs a TypeScript SDK.
- Host: GitHub
- URL: https://github.com/basementstudio/b-gsdk
- Owner: basementstudio
- Created: 2022-04-18T02:08:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T19:14:18.000Z (over 3 years ago)
- Last Synced: 2026-02-20T07:40:51.834Z (4 months ago)
- Topics: cli, codegen, graphql, sdk, typescript
- Language: TypeScript
- Homepage:
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# b-gsdk
A GraphQL Codegen that outputs a TypeScript SDK.
## Install
```zsh
yarn add b-gsdk --dev
```
## Usage
1. Create `./b-gsdk/config.js`:
```js
/**
* @type {import('b-gsdk').BGsdkConfig}
*/
module.exports = {
endpoint: "",
headers: {}
}
```
2. Run generator:
```zsh
yarn b-gsdk generate
```
### With Custom Directory
1. Create `./custom-dir/config.js`.
2. Run generator with `--dir` argument:
```zsh
yarn b-gsdk generate --dir custom-dir
```