Skip to content

basementstudio/b-gsdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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