graphql-usage
A tool for refactoring GraphQL APIs
Last updated a month ago by cdthomas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install graphql-usage 
SYNC missed versions from official npm registry.

graphql-usage

Version CircleCI License

???? A tool for refactoring GraphQL APIs.

Installation

Global installation (recommended)

NPM:

$ npm install -g graphql-usage

Yarn:

$ yarn global add graphql-usage

Local installation

NPM:

$ npm install --save-dev graphql-usage

Yarn:

$ yarn add -D graphql-usage

Support and Requirements

  • Source files using JS, Flow, or TypeScript
  • Projects using Relay, Apollo, or graphql-tag
  • Source files must be in a Git project and the branch that's being analyzed must be pushed to GitHub

Usage

$ graphql-usage SCHEMA SOURCEDIR

Arguments:

  • SCHEMA: Path to the Graphql schema to report usage info for. Can be either a .json or .graphql file.
  • SOURCEDIR: Path to the source directory to analyze.

Options:

  • -h, --help: show CLI help
  • -v, --version: show CLI version
  • --exclude: Directories to ignore under src
  • --port: Port to run the report server on
  • --quiet: No output to stdout

Example:

$ graphql-usage ./schema.graphql ./src/

Current Tags

  • 0.8.0                                ...           latest (a month ago)

13 Versions

  • 0.8.0                                ...           a month ago
  • 0.7.0                                ...           a month ago
  • 0.6.3                                ...           a month ago
  • 0.6.2                                ...           a month ago
  • 0.6.1                                ...           a month ago
  • 0.6.0                                ...           2 months ago
  • 0.5.0                                ...           3 months ago
  • 0.4.2                                ...           3 months ago
  • 0.4.1                                ...           3 months ago
  • 0.4.0                                ...           3 months ago
  • 0.3.0                                ...           3 months ago
  • 0.2.0                                ...           3 months ago
  • 0.1.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 106
Dependencies (13)
Dev Dependencies (20)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |