Skip to content

Commit e17faea

Browse files
committed
Initial commit
0 parents  commit e17faea

File tree

12 files changed

+404
-0
lines changed

12 files changed

+404
-0
lines changed

.babelrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"env": {
3+
"development": {
4+
"presets": ["es2015"],
5+
"plugins": [
6+
"syntax-async-functions",
7+
"transform-regenerator",
8+
"transform-class-properties",
9+
"transform-object-rest-spread",
10+
"transform-flow-strip-types",
11+
]
12+
},
13+
"es": {
14+
"plugins": [
15+
"syntax-async-functions",
16+
"transform-regenerator",
17+
"transform-class-properties",
18+
"transform-object-rest-spread",
19+
"transform-flow-strip-types",
20+
]
21+
}
22+
}
23+
}

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib/*
2+
es/*

.eslintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "airbnb",
3+
"parser": "babel-eslint",
4+
"rules": {
5+
"no-underscore-dangle": 0,
6+
"no-unused-expressions": 0,
7+
"arrow-body-style": 0
8+
},
9+
"env": {
10+
"mocha": true
11+
}
12+
}

.flowconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[ignore]
2+
.*/__tests__/.*
3+
.*/__mocks__/.*
4+
.*/coverage/.*
5+
.*/resources/.*
6+
7+
[include]
8+
9+
[libs]
10+
11+
[options]
12+
esproposal.class_instance_fields=enable
13+
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
14+
15+
[version]
16+
0.28.0

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
15+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
16+
.grunt
17+
18+
# node-waf configuration
19+
.lock-wscript
20+
21+
# Compiled binary addons (http://nodejs.org/api/addons.html)
22+
build/Release
23+
24+
# IntelliJ Files
25+
*.iml
26+
*.ipr
27+
*.iws
28+
/out/
29+
.idea/
30+
.idea_modules/
31+
32+
# Dependency directory
33+
node_modules
34+
35+
# Optional npm cache directory
36+
.npm
37+
38+
# Optional REPL history
39+
.node_repl_history
40+
41+
# Transpiled code
42+
/es
43+
/lib

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pavel Chertorogov <pavel.chertorogov@gmail.com>

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## master
2+
3+
## 0.0.1 (July 10, 2016)
4+
* Initial commit

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016-present Pavel Chertorogov
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
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.

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
graphql-compose-connection
2+
======================
3+
This is a plugin for [graphql-compose](https://github.com/nodkz/graphql-compose), which adds to the GraphQL types `connection` resolvers.
4+
5+
[CHANGELOG](https://github.com/nodkz/graphql-compose-connection/blob/master/CHANGELOG.md)
6+
7+
Example
8+
=======
9+
10+
11+
Requirements
12+
============
13+
14+
15+
Compatible plugins
16+
==================
17+
18+
19+
License
20+
=======
21+
[MIT](https://github.com/nodkz/graphql-compose-relay/blob/master/LICENSE.md)

package.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"name": "graphql-compose-connection",
3+
"version": "0.0.1",
4+
"description": "Plugin for `graphql-compose` which provide a connection resolver for types.",
5+
"files": [
6+
"es",
7+
"lib"
8+
],
9+
"main": "lib/index.js",
10+
"jsnext:main": "es/index.js",
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/nodkz/graphql-compose-connection.git"
14+
},
15+
"keywords": [
16+
"graphql",
17+
"compose",
18+
"relay"
19+
],
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/nodkz/graphql-compose-connection/issues"
23+
},
24+
"homepage": "https://github.com/nodkz/graphql-compose-connection",
25+
"dependencies": {
26+
"graphql-compose": ">=0.0.5"
27+
},
28+
"peerDependencies": {
29+
"graphql": "^0.5.0"
30+
},
31+
"devDependencies": {
32+
"babel-cli": "6.10.1",
33+
"babel-eslint": "6.1.0",
34+
"babel-plugin-syntax-async-functions": "6.8.0",
35+
"babel-plugin-transform-class-properties": "6.10.2",
36+
"babel-plugin-transform-flow-strip-types": "6.8.0",
37+
"babel-plugin-transform-object-rest-spread": "6.8.0",
38+
"babel-plugin-transform-regenerator": "6.9.0",
39+
"babel-preset-es2015": "6.9.0",
40+
"chai": "3.5.0",
41+
"chai-as-promised": "5.3.0",
42+
"chai-spies": "0.7.1",
43+
"eslint": "2.13.1",
44+
"eslint-config-airbnb": "9.0.1",
45+
"eslint-plugin-flow-vars": "0.4.0",
46+
"eslint-plugin-flowtype": "2.2.7",
47+
"eslint-plugin-import": "1.10.2",
48+
"eslint-plugin-jsx-a11y": "1.5.5",
49+
"eslint-plugin-react": "5.2.2",
50+
"flow-bin": "0.28.0",
51+
"mocha": "2.5.3",
52+
"rimraf": "2.5.2",
53+
"sane": "1.3.4"
54+
},
55+
"scripts": {
56+
"build": "npm run build-cjs && npm run build-flow && npm run build-es",
57+
"build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib",
58+
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
59+
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\\/src\\\//\\\/lib\\\//g'`.flow; done",
60+
"lint": "eslint src test *.js",
61+
"prepublish": "npm run build",
62+
"test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js",
63+
"watch": "babel-node ./resources/watch.js"
64+
}
65+
}

resources/mocha-bootload.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* eslint-disable */
2+
3+
var chai = require('chai');
4+
var chaiAsPromised = require('chai-as-promised');
5+
var chaiSpies = require('chai-spies');
6+
7+
chai.use(chaiAsPromised);
8+
chai.use(chaiSpies);
9+
10+
process.on('unhandledRejection', (error) => {
11+
console.error('Unhandled Promise Rejection:');
12+
console.error(error && error.stack || error);
13+
});

0 commit comments

Comments
 (0)