Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Flow defaults (#873)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
James Baxley authored Jul 20, 2017
1 parent 151696f commit 71c47b8
Show file tree
Hide file tree
Showing 73 changed files with 14,316 additions and 220 deletions.
3 changes: 0 additions & 3 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
.*/examples/**/.*
.*/node_modules/art/.*
.*/node_modules/react-native/**/.*
.*/node_modules/apollo-client/test/**/.*

[include]

[libs]
./node_modules/apollo-client/index.js.flow
./index.js.flow

[options]
suppress_comment= \\(.\\|\n\\)*\\$ExpectError
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ node_modules
lib
test-lib
dist
npm

# don't track yarn lock but allow contributors to use it for local dev
yarn.lock
package-lock.json

# flow
!flow-typed/npm

7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ script:
# Allow Travis tests to run in containers.
sudo: false

notifications:
email: false

before_deploy:
- npm run deploy
- cd ./npm

deploy:
provider: npm
email: james.baxley@newspring.cc
Expand Down
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

### vNext

### 1.4.7
- Feature: Add support for flow typecheck to work out of the box (without any configuration)

### 1.4.6
- 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)

Expand Down
26 changes: 0 additions & 26 deletions appveyor.yml

This file was deleted.

18 changes: 18 additions & 0 deletions flow-typed/npm/@types/enzyme_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 8321530d72e86ab95eec085a74170df8
// flow-typed version: <<STUB>>/@types/enzyme_v^2.4.32/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/enzyme'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/enzyme' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/graphql_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: f51eb9f045744ba65f8e8189bcea9d81
// flow-typed version: <<STUB>>/@types/graphql_v^0.9.0/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/graphql'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/graphql' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/invariant_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 1545e5173c92982b962e92de621f32f5
// flow-typed version: <<STUB>>/@types/invariant_v^2.2.27/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/invariant'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/invariant' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/isomorphic-fetch_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 336228a4339a29f4e75391da25bc1552
// flow-typed version: <<STUB>>/@types/isomorphic-fetch_v0.0.34/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/isomorphic-fetch'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/isomorphic-fetch' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 645b852c457bdb537fb3770f5af3fc67
// flow-typed version: <<STUB>>/@types/jest_v^20.0.0/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/jest'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/jest' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/lodash_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 522fe071fedf2fd8fea69ca6e0a75faa
// flow-typed version: <<STUB>>/@types/lodash_v^4.14.36/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/lodash'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/lodash' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/node_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: d1be116f46610047ae85126a02e1f7c2
// flow-typed version: <<STUB>>/@types/node_v^8.0.0/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/node'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/node' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/object-assign_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 8ebd8ef35cc6b290c4e9fc1402ac1fdd
// flow-typed version: <<STUB>>/@types/object-assign_v^4.0.28/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/object-assign'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/object-assign' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/react-addons-test-utils_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 4a8ba350d9c41ba363f161c1a05583af
// flow-typed version: <<STUB>>/@types/react-addons-test-utils_v^0.14.14/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/react-addons-test-utils'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/react-addons-test-utils' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/react-dom_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 9fa83be9203cbb05db6e2910fea89f28
// flow-typed version: <<STUB>>/@types/react-dom_v^15.5.0/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/react-dom'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/react-dom' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/react-redux_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 5af2e4d474ae4de5452f7b35784d34d2
// flow-typed version: <<STUB>>/@types/react-redux_v^4.4.31/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/react-redux'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/react-redux' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/react_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 54b3bc0c54adca3dab343c2672af2a74
// flow-typed version: <<STUB>>/@types/react_v^15.0.12/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/react'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/react' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/redux-form_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: f76bc420ffb3720cca5524247b1c41e5
// flow-typed version: <<STUB>>/@types/redux-form_v^6.3.2/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/redux-form'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/redux-form' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/redux-immutable_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 3ea73e2b4f38602384c68df54cba6492
// flow-typed version: <<STUB>>/@types/redux-immutable_v^3.0.30/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/redux-immutable'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/redux-immutable' {
declare module.exports: any;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/@types/sinon_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 2bcf7f8ce8a77bdddfbbb76a0a448e62
// flow-typed version: <<STUB>>/@types/sinon_v^2.1.1/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* '@types/sinon'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@types/sinon' {
declare module.exports: any;
}
32 changes: 32 additions & 0 deletions flow-typed/npm/babel-jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// flow-typed signature: 23a739cb124104e396090fcd455bcd87
// flow-typed version: <<STUB>>/babel-jest_v^19.0.0/flow_v0.49.1

/**
* This is an autogenerated libdef stub for:
*
* 'babel-jest'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module 'babel-jest' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-jest/build/index' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-jest/build/index.js' {
declare module.exports: $Exports<'babel-jest/build/index'>;
}
Loading

0 comments on commit 71c47b8

Please sign in to comment.