Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 465 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 465 Bytes

b-gsdk

A GraphQL Codegen that outputs a TypeScript SDK.

Install

yarn add b-gsdk --dev

Usage

  1. Create ./b-gsdk/config.js:
/**
 * @type {import('b-gsdk').BGsdkConfig}
 */
module.exports = {
  endpoint: "",
  headers: {}
}
  1. Run generator:
yarn b-gsdk generate

With Custom Directory

  1. Create ./custom-dir/config.js.
  2. Run generator with --dir argument:
yarn b-gsdk generate --dir custom-dir