Skip to content

Commit

Permalink
feat(Flowtype): add Flowtype declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Nov 6, 2017
1 parent 79edda9 commit 3ec89f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ ReactRelayNetworkLayer (for Relay Classic)
[![Travis](https://img.shields.io/travis/nodkz/react-relay-network-layer.svg?maxAge=2592000)](https://travis-ci.org/nodkz/react-relay-network-layer)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
![FlowType compatible](https://img.shields.io/badge/flowtype-compatible-brightgreen.svg)

#### Currently this library supports **Relay classic** and compat mode. If you need **Relay Modern**, please subscribe on [issue #50](https://github.com/nodkz/react-relay-network-layer/issues/50). I'm not fulltime in OSS, so it will take some time. Thanks for patience.
#### Currently this library supports **Relay classic** and compat mode. If you need **Relay Modern**, please subscribe on [issue #50](https://github.com/nodkz/react-relay-network-layer/issues/50). I'm not fulltime in OSS, so it will take some time. Thanks for patience.

The `ReactRelayNetworkLayer` is a [Relay Network Layer](https://facebook.github.io/relay/docs/guides-network-layer.html)
with various middlewares which can manipulate requests/responses on the fly (change auth headers, request url or perform some fallback if request fails), batch several relay request by timeout into one http request.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@
]
},
"scripts": {
"build": "npm run build-lib && npm run build-es",
"build": "npm run build-lib && npm run build-es && npm run build-flow",
"build-lib": "rimraf lib && BABEL_ENV=lib babel src --ignore __tests__,__mocks__ -d lib",
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
"lint": "eslint src test *.js",
"coverage": "jest --coverage --maxWorkers 2",
"watch": "jest --watch",
Expand Down

0 comments on commit 3ec89f6

Please sign in to comment.