Skip to content

Language plugin for Relay that generates the same output as the default compiler, but with Flow types as actual source and not inside comments.

License

Notifications You must be signed in to change notification settings

a-sane/relay-compiler-language-js-flow-uncommented

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

relay-compiler-language-js-flow-uncommented

Language plugin for Relay that generates the same output as the default compiler, but with Flow types as actual source and not inside comments.

Why?

Some IDEs/editors (like WebStorm/IDEA) do not understand Flow when it's inside comments (even though that's actually valid Flow). This thin language plugin solves that.

Usage

Install the package.

yarn add --dev relay-compiler-language-js-flow-uncommented

In your script that runs the compiler, add --language js-flow-uncommented. Example as a script in package.json:

...
"scripts": {
  ...
  "relay": "relay-compiler --src src --schema src/config/schema.graphql --language js-flow-uncommented"
  ...
}
...

About

Language plugin for Relay that generates the same output as the default compiler, but with Flow types as actual source and not inside comments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%