graphql-central-types
CLI to generate a central types repository
Last updated a year ago by abhiaiyer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install graphql-central-types 
SYNC missed versions from official npm registry.

graphql-central-types

CLI for creating a centralized module of GraphQL type definitions, Bindings, queries

oclif Version Downloads/week License

Usage

$ npm install -g graphql-central-types
$ types COMMAND
running command...
$ types (-v|--version|version)
graphql-central-types/0.0.13 darwin-x64 node-v10.0.0
$ types --help [COMMAND]
USAGE
  $ types COMMAND
...

Commands

types exportSchemas

make all schema root types into an exportable file

USAGE
  $ types exportSchemas

EXAMPLE
  $ types schemaExports

See code: src/commands/exportSchemas.ts

types exportTypeDefs

Take all typeDefs and make them exportable

USAGE
  $ types exportTypeDefs

EXAMPLE
  $ types exportTypeDefs

See code: src/commands/exportTypeDefs.ts

types generateSchemaJson

Generate a schema.json file in the queries folder based on the RootType

USAGE
  $ types generateSchemaJson

EXAMPLE
  $ types generateSchemaJson

See code: src/commands/generateSchemaJson.ts

types generateServiceBindings

Generate GraphQL bindings for your each schema

USAGE
  $ types generateServiceBindings

EXAMPLE
  $ types init

See code: src/commands/generateServiceBindings.ts

types help [COMMAND]

display help for types

USAGE
  $ types help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

types init

Scaffold the directory structure for the types repo

USAGE
  $ types init

EXAMPLE
  $ types init

See code: src/commands/init.ts

types mergeSchemas

merge all types from the Schemas directory and combine them into a single RootType.ts

USAGE
  $ types mergeSchemas

EXAMPLE
  $ types merge-schemas

See code: src/commands/mergeSchemas.ts

Current Tags

  • 0.0.13                                ...           latest (a year ago)

6 Versions

  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.6                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 14
Dependencies (13)
Dev Dependencies (18)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |