forked from apollographql/react-apollo
-
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.
* intial build of react-apollo connect and Provider
- Loading branch information
James Baxley
committed
Apr 16, 2016
1 parent
4565d30
commit e919097
Showing
18 changed files
with
2,312 additions
and
46 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,32 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
# don't commit compiled files | ||
lib | ||
test-lib | ||
typings |
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 @@ | ||
example |
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,15 @@ | ||
language: node_js | ||
node_js: | ||
- "5" | ||
- "4" | ||
install: | ||
- npm install -g coveralls | ||
- npm install | ||
|
||
script: | ||
- npm test | ||
- npm run coverage | ||
- coveralls < ./coverage/lcov.info || true # ignore coveralls error | ||
|
||
# Allow Travis tests to run in containers. | ||
sudo: false |
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,14 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Test", | ||
"type": "node", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"stopOnEntry": false, | ||
"args": ["lib/test/tests.js"], | ||
"cwd": "${workspaceRoot}", | ||
"runtimeExecutable": null | ||
} | ||
] | ||
} |
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,16 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"editor.tabSize": 2, | ||
"editor.rulers": [100], | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"editor.wrappingColumn": 100, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.DS_Store": true, | ||
// "node_modules": true, | ||
"test-lib": true, | ||
"lib": true, | ||
"coverage": true | ||
} | ||
} |
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,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Ben Newman | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
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,26 @@ | ||
# Test against this version of Node.js | ||
environment: | ||
matrix: | ||
# node.js | ||
- nodejs_version: "5" | ||
- nodejs_version: "4" | ||
|
||
# Install scripts. (runs after repo cloning) | ||
install: | ||
# Get the latest stable version of Node.js or io.js | ||
- ps: Install-Product node $env:nodejs_version | ||
# install modules | ||
- npm install | ||
|
||
# Post-install test scripts. | ||
test_script: | ||
# run tests | ||
- npm test | ||
|
||
# artifacts: | ||
# - path: ./junit/xunit.xml | ||
# - path: ./xunit.xml | ||
|
||
# nothing to compile in this project | ||
build: off | ||
deploy: off |
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,11 +1,67 @@ | ||
{ | ||
"name": "apollo-react", | ||
"name": "react-apollo", | ||
"version": "0.0.1", | ||
"description": "React data container for Apollo Client", | ||
"main": "index.js", | ||
"main": "./lib/src/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"pretest": "npm run compile", | ||
"test": "mocha --require ./test/fixtures/setup.js --reporter spec --full-trace --recursive ./lib/test", | ||
"posttest": "npm run lint", | ||
"compile": "tsc", | ||
"watch": "tsc -w", | ||
"prepublish": "npm run compile", | ||
"lint": "tslint src/*.ts* && tslint test/*.ts*", | ||
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace lib/test/tests.js", | ||
"postcoverage": "remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
"repository": { | ||
"type": "git", | ||
"url": "apollostack/react-apollo" | ||
}, | ||
"keywords": [ | ||
"ecmascript", | ||
"es2015", | ||
"jsnext", | ||
"javascript", | ||
"relay", | ||
"npm", | ||
"react" | ||
], | ||
"author": "James Baxley <[email protected]>", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"react": "^0.14.0 || ^15.0.0-0", | ||
"redux": "^2.0.0 || ^3.0.0", | ||
"apollo-client": "0.0.5" | ||
}, | ||
"devDependencies": { | ||
"apollo-client": "0.0.5", | ||
"chai": "^3.5.0", | ||
"chai-as-promised": "^5.2.0", | ||
"chai-enzyme": "^0.4.2", | ||
"cheerio": "^0.20.0", | ||
"enzyme": "^2.2.0", | ||
"graphql": "^0.5.0", | ||
"istanbul": "^0.4.2", | ||
"jsdom": "^8.3.1", | ||
"mocha": "^2.3.3", | ||
"react": "^15.0.1", | ||
"react-addons-test-utils": "^15.0.1", | ||
"react-dom": "^0.14.8", | ||
"redux": "^3.4.0", | ||
"remap-istanbul": "^0.5.1", | ||
"source-map-support": "^0.4.0", | ||
"swapi-graphql": "0.0.4", | ||
"tslint": "^3.6.0", | ||
"typescript": "^1.8.9", | ||
"typescript-require": "^0.2.9-1", | ||
"typings": "^0.7.9" | ||
}, | ||
"dependencies": { | ||
"hoist-non-react-statics": "^1.0.5", | ||
"lodash.isequal": "^4.1.1", | ||
"lodash.isobject": "^3.0.2", | ||
"object-assign": "^4.0.1", | ||
"react-redux": "^4.4.4" | ||
} | ||
} |
Oops, something went wrong.