# relay-compiler-language-js-only-flow

> Only generate flow types using the relay-compiler

Latest version **0.0.1** (published 2020-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install relay-compiler-language-js-only-flow
pnpm add relay-compiler-language-js-only-flow
yarn add relay-compiler-language-js-only-flow
bun add relay-compiler-language-js-only-flow
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-04-18 |
| First published | 2020-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Eric Koslow |
| Maintainers | ekosz |

## Links

- npm: https://www.npmjs.com/package/relay-compiler-language-js-only-flow
- Repository: https://github.com/latticehr/relay-compiler-language-js-only-flow
- npm.io page: https://npm.io/package/relay-compiler-language-js-only-flow

## Recent versions

- 0.0.1 (latest) — 2020-04-18

## README

# js-only-flow

This is [`relay-compiler`](https://www.npmjs.com/package/relay-compiler)
[`language plugin`](https://relay.dev/docs/en/type-emission#language-plugins)
that emits `.graphql.js` files that _only_ contain the flowtype information.

## Why?

At [Lattice](https://lattice.com/) we love GraphQL, Relay, and Flow. Many of
our internal backend services speak to each over using GraphQL. One of the best
parts of using Relay on the client has been being able to type-check our code
against our GraphQL queries. But we wanted that same soundness when doing
server to server commination without using `react-relay`.

## Usage

Add something like this to your `package.json` file:

```
"scripts": {
  "graphql:gen": "relay-compiler --schema {{pathToSchema}} --src src --language js-only-flow"
}
```

---
_Source: https://npm.io/package/relay-compiler-language-js-only-flow · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
