relay-compiler-language-coffeescript
A language plugin for Relay that adds CoffeeScript support.
Last updated 2 years ago by sciyoshi .
MIT · Original npm · Tarball · package.json
$ cnpm install relay-compiler-language-coffeescript 
SYNC missed versions from official npm registry.

relay-compiler-language-coffeescript

A language plugin for Relay that adds CoffeeScript support. Requires relay>=1.7; if you are using an older version, see this project for a workaround.

The plugin registers itself for both .js/.jsx and .coffee/.cjsx extensions, since Relay doesn't support composing or using multiple plugins.

To use, install:

npm install --save-dev relay-compiler-language-coffeescript

And then run relay-compiler by specifying the plugin:

relay-compiler --language coffeescript --schema schema.json --src src

Queries in CoffeeScript work much the same way as in JS, but uses regular quotes instead of backticks:

MyQuery = graphql"
    query MyQuery {
    	...
    }
"

Current Tags

  • 2.2.1                                ...           latest (8 months ago)

7 Versions

  • 2.2.1                                ...           8 months ago
  • 2.1.0                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 7
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |