-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'app/packages/meteor-integration/' changes from d5bee6f..853…
…5ff5 8535ff5 Merge branch 'apollographql-master' a0bcdeb updated to 0.3.1 9c0165b Release 0.3.1 8b17a20 Release 0.3.0 f2a6044 Update CHANGELOG 99d7c8c Add note to README about testing warning 0864876 Write tests for batching interface & restructure tests (#68) 624e46b Update versions 8677c36 Add batching (#62) 37497ea Enable SSR, fixes #56 (#57) 7eadb9d Fix #3 test runner (#63) 39d2c91 batching interface by default, extend interface option only when relevant ec1e8cc client: allow to configure 'createMeteorNetworkInterface' to use a batching interface; pass opts to fetch; add comments to default config git-subtree-dir: app/packages/meteor-integration git-subtree-split: 8535ff51a9b3ad39792903ea9259f956158d34e7
- Loading branch information
Showing
15 changed files
with
780 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets": ["es2015", "stage-0"], | ||
"plugins": [ | ||
"transform-runtime" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bin/** | ||
build/** | ||
app/node_modules/** | ||
packages/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"parser" : "babel-eslint", | ||
"plugins": [ | ||
"react", | ||
"jsx-a11y", | ||
"import", | ||
"meteor", | ||
"fp", | ||
"graphql" | ||
], | ||
"extends" : [ | ||
"airbnb", | ||
"plugin:meteor/recommended" | ||
], | ||
"settings": { | ||
"import/resolver": { | ||
"meteor": { | ||
"extensions": [ | ||
".js", | ||
".jsx" | ||
], | ||
"moduleDirectory": [ | ||
"node_modules" | ||
] | ||
} | ||
} | ||
}, | ||
"rules": { | ||
// Soft some rules. | ||
"global-require": 0, // Used by webpack-isomorphic-tools and React Native. | ||
"no-class-assign": 0, // Class assign is used for higher order components. | ||
"no-nested-ternary": 0, // It's nice for JSX. | ||
"no-param-reassign": 0, // We love param reassignment. Naming is hard. | ||
"no-shadow": 0, // Shadowing is a nice language feature. Naming is hard. | ||
"import/first": 0, // Este sorts by atom/sort-lines natural order. | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], // No, JSX belongs to .js files | ||
"react/react-in-jsx-scope": 0, | ||
"react/forbid-prop-types": [0, { "forbid": [] }], | ||
"jsx-a11y/html-has-lang": 0, // Can't recognize the Helmet. | ||
"no-confusing-arrow": 0, // This rule is super confusing. | ||
"react/no-unused-prop-types": 0, // Este is going to use Flow types. | ||
"react/jsx-indent": 0, // Damn. We need Yarn asap. | ||
"import/prefer-default-export": 0, // No. Actions can have just one action. | ||
"no-duplicate-imports": 0, // github.com/babel/eslint-plugin-babel/issues/59#issuecomment-230118848 | ||
"import/no-duplicates": 2, | ||
// Rules for functional programming. We do not need Object.freeze. | ||
"fp/no-mutating-assign": 2 | ||
// TODO: Can't be enabled now, it requires a lot of refactoring. | ||
// "fp/no-mutating-methods": 2, | ||
// "fp/no-mutation": ["error", { | ||
// "commonjs": true, | ||
// "allowThis": true, | ||
// "exceptions": [ | ||
// {"property": "propTypes"} | ||
// ] | ||
// }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.idea | ||
.iron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
Use the [Apollo Stack](http://dev.apollodata.com/) in your [Meteor](https://www.meteor.com/) app. | ||
Use the [Apollo GraphQL Client and Server](http://dev.apollodata.com/) in your [Meteor](https://www.meteor.com/) app. | ||
|
||
```sh | ||
meteor add apollo | ||
``` | ||
|
||
# Docs | ||
|
||
**[The docs](http://dev.apollodata.com/core/meteor.html)** | ||
|
||
# Package dev | ||
|
||
## Tests | ||
|
||
TODO broken, see #3 | ||
|
||
```bash | ||
git clone git@github.com:apollostack/meteor-integration.git | ||
cd meteor-integration | ||
meteor test-packages ./ --driver-package practicalmeteor:mocha | ||
open localhost:3000 | ||
npm install | ||
npm run test | ||
open http://localhost:3000 | ||
``` | ||
|
||
Ignore the npm peer requirements warning that appears on client and server consoles. | ||
|
||
## Credits | ||
|
||
[Contributors](https://github.com/apollostack/meteor-integration/graphs/contributors) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "apollo-meteor-integration", | ||
"version": "0.2.1", | ||
"description": " 🚀 Add Apollo to your Meteor app", | ||
"directories": { | ||
"test": "tests" | ||
}, | ||
"scripts": { | ||
"test": "meteor test-packages ./ --driver-package practicalmeteor:mocha" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/apollostack/meteor-integration.git" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/apollostack/meteor-integration/issues" | ||
}, | ||
"homepage": "https://github.com/apollostack/meteor-integration#readme", | ||
"dependencies": { | ||
"apollo-client": "^0.8.4", | ||
"babel": "^6.5.2", | ||
"babel-core": "^6.22.1", | ||
"babel-eslint": "^7.1.1", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-stage-2": "^6.22.0", | ||
"body-parser": "^1.15.2", | ||
"express": "^4.14.0", | ||
"graphql": "^0.9.1", | ||
"graphql-server-express": "^0.6.0", | ||
"graphql-subscriptions": "^0.3.0", | ||
"graphql-tools": "^0.10.0", | ||
"subscriptions-transport-ws": "^0.5.1", | ||
"whatwg-fetch": "^2.0.2" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.15.0", | ||
"eslint-config-airbnb": "^14.1.0", | ||
"eslint-import-resolver-meteor": "^0.3.4", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^4.0.0", | ||
"eslint-plugin-react": "^6.9.0" | ||
} | ||
} |
Oops, something went wrong.