An open API service indexing awesome lists of open source software.

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.

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
```