This package has been deprecated

Author message:

Please use the newer graphql-cli-prepare plugin

graphql-cli-binding
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

graphql-cli-binding npm

CircleCIDavidGreenkeeper badge
Plugin for graphql-cli. Generates static bindings for any GraphQL schema using graphql-static-binding (WIP!) and outputs a code file.

Installation

Install graphql-cli-binding either globally (recommended) or locally using your favorite package manager:

$ yarn [global] add graphql-cli-binding
$ npm install graphql-cli-binding [--global]

Usage

graphql bindings [schema]

Generate static bindings for the schema and output to a single code file

Options:
  --dotenv         Path to .env file                                    [string]
  -p, --project    Project name                                         [string]
  --schema         Schema file to process                               [string]
  --output, -o     Filename of output code file              [string] [required]
  --generator, -g  Generator used to generate binding files             [string]
  --force, -f      Force overwriting exissting output file             [boolean]
  -h, --help       Show help                                           [boolean]
  -v, --version    Show version number                                 [boolean]

Available generators

Currently, the following generators are available:

  • graphcool-ts: Generate Typescript binding file based on graphcool-binding
  • graphcool-js: Generate Javascript binding file based on graphcool-binding
  • binding-ts: Generate Typescript binding file based on graphql-binding
  • binding-js: Generate Javascript binding file based on graphql-binding

You can also pass your own generator file to --generator.


Readme

Keywords

Package Sidebar

Install

npm i graphql-cli-binding

Weekly Downloads

0

Version

0.2.1

License

MIT

Last publish

Collaborators

  • kbrandwijk