Skip to content

Commit 71c47b8

Browse files
author
James Baxley
authored
Flow defaults (apollographql#873)
* start work on shipping flow types by default * add back in dev deps * update permissions on deploy script * update shell script * fix src dir * clean up dir structure * fix paths again * update travis file * version bump
1 parent 151696f commit 71c47b8

File tree

73 files changed

+14316
-220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+14316
-220
lines changed

.flowconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
.*/examples/**/.*
33
.*/node_modules/art/.*
44
.*/node_modules/react-native/**/.*
5-
.*/node_modules/apollo-client/test/**/.*
65

76
[include]
87

98
[libs]
10-
./node_modules/apollo-client/index.js.flow
11-
./index.js.flow
129

1310
[options]
1411
suppress_comment= \\(.\\|\n\\)*\\$ExpectError

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ node_modules
3030
lib
3131
test-lib
3232
dist
33+
npm
3334

3435
# don't track yarn lock but allow contributors to use it for local dev
3536
yarn.lock
3637
package-lock.json
38+
39+
# flow
40+
!flow-typed/npm
41+

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ script:
2828
# Allow Travis tests to run in containers.
2929
sudo: false
3030

31+
notifications:
32+
email: false
33+
34+
before_deploy:
35+
- npm run deploy
36+
- cd ./npm
37+
3138
deploy:
3239
provider: npm
3340
email: james.baxley@newspring.cc

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
### vNext
44

5+
### 1.4.7
6+
- Feature: Add support for flow typecheck to work out of the box (without any configuration)
7+
58
### 1.4.6
69
- Fix: Fix issue where `withRef`-option of `graphql` did not work when the query was skipped [#865](https://github.com/apollographql/react-apollo/pull/865)
710

appveyor.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// flow-typed signature: 8321530d72e86ab95eec085a74170df8
2+
// flow-typed version: <<STUB>>/@types/enzyme_v^2.4.32/flow_v0.49.1
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@types/enzyme'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@types/enzyme' {
17+
declare module.exports: any;
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// flow-typed signature: f51eb9f045744ba65f8e8189bcea9d81
2+
// flow-typed version: <<STUB>>/@types/graphql_v^0.9.0/flow_v0.49.1
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@types/graphql'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@types/graphql' {
17+
declare module.exports: any;
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// flow-typed signature: 1545e5173c92982b962e92de621f32f5
2+
// flow-typed version: <<STUB>>/@types/invariant_v^2.2.27/flow_v0.49.1
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@types/invariant'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@types/invariant' {
17+
declare module.exports: any;
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// flow-typed signature: 336228a4339a29f4e75391da25bc1552
2+
// flow-typed version: <<STUB>>/@types/isomorphic-fetch_v0.0.34/flow_v0.49.1
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@types/isomorphic-fetch'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@types/isomorphic-fetch' {
17+
declare module.exports: any;
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// flow-typed signature: 645b852c457bdb537fb3770f5af3fc67
2+
// flow-typed version: <<STUB>>/@types/jest_v^20.0.0/flow_v0.49.1
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@types/jest'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@types/jest' {
17+
declare module.exports: any;
18+
}

0 commit comments

Comments
 (0)