ts-graphql-gen
Generate typescript types from graphql schema + documents.
Last updated 12 days ago by rynobax .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install ts-graphql-gen 
SYNC missed versions from official npm registry.

ts-graphql-gen (WIP)

Generate typescript types from graphql schema + documents.

TODO

  • watch mode (warn if watching too many files)
  • add progress messages
  • test on more real apps
  • add recipes to repo
  • readme + documentation
  • test built files before publish
  • change where gql is imported from

Why not graphql-code-generator?

It's a great tool that I have used a lot. However, IMHO it is trying to do to much, and as a result I have encountered two issues.

  1. The config is super confusing to me. There's a ton of flags that all change the output, some of which merely change how it looks, but not the types. With this project I am trying to reduce the amount of options, but make the options that are available flexible, so that it can support any client side query library.
  2. I have raised a couple issues that have never been addressed, and was unable to figure out how to fix the issues myself. Maybe this is more of a issue with my ability to understand monorepos, but I wanted to try to solve this issue with a simpler codebase, that hopefully will be easier to contribute to.

Current Tags

  • 0.0.10                                ...           latest (12 days ago)
  • 0.0.7-0                                ...           next (22 days ago)

10 Versions

  • 0.0.10                                ...           12 days ago
  • 0.0.9                                ...           13 days ago
  • 0.0.8                                ...           15 days ago
  • 0.0.7                                ...           15 days ago
  • 0.0.7-0                                ...           22 days ago
  • 0.0.6-0                                ...           22 days ago
  • 0.0.5-0                                ...           22 days ago
  • 0.0.4-0                                ...           22 days ago
  • 0.0.3-0                                ...           22 days ago
  • 0.0.2-0                                ...           22 days ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 99
Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |