@kickstarter/binding

Generated APIs for async data flows in React with a strong emphasis on type safety

use bind package instead
Last updated 10 months ago by garbles .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @kickstarter/binding 
SYNC missed versions from official npm registry.

Install

yarn add @kickstarter/binding

Setup

Create a .bind-graphqlrc or bind-graphql.config.js that exports the following options

schema: string

Relative path or URL to GraphQL schema (default: "./schema.graphql")

output: string

Relative path of output schema declaration file (default: "./schema.d.ts")

files: string

Glob for GraphQL files to compile (default: "**/*.graphql")

print: boolean

Do not write schema file, and instead print the result (default: false)

Use

Use @kickstarter/binding/graphql-webpack-loader as your Webpack loader for GraphQL files.

Use @kickstarter/binding/graphql-jest-transform as your Jest transform for GraphQL files.

Run yarn bind-graphql to create type definitions for all GraphQL files.

Import .graphql files directly into your TypeScript file.

Generated code

TODO

Current Tags

  • 0.0.1                                ...           latest (10 months ago)
  • 0.0.2-15                                ...           next (10 months ago)

17 Versions

  • 0.0.2-15                                ...           10 months ago
  • 0.0.2-14                                ...           10 months ago
  • 0.0.2-13                                ...           10 months ago
  • 0.0.2-12                                ...           10 months ago
  • 0.0.2-11                                ...           10 months ago
  • 0.0.2-10                                ...           10 months ago
  • 0.0.2-9                                ...           10 months ago
  • 0.0.2-8                                ...           10 months ago
  • 0.0.2-7                                ...           10 months ago
  • 0.0.2-6                                ...           10 months ago
  • 0.0.2-5                                ...           10 months ago
  • 0.0.2-4                                ...           10 months ago
  • 0.0.2-3                                ...           10 months ago
  • 0.0.2-2                                ...           10 months ago
  • 0.0.2-1                                ...           10 months ago
  • 0.0.2-0                                ...           10 months ago
  • 0.0.1 [deprecated]           ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 17
This Month 17
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (30)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |