From 2d20f232319226ddb9e02779a94251a96403a4e0 Mon Sep 17 00:00:00 2001 From: Bojan Hribernik Date: Tue, 15 Nov 2016 02:23:10 +0100 Subject: [PATCH 1/8] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06db4d0..4b34262 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ import ApolloClient from 'apollo-client' import createNetworkInterface from 'apollo-upload-network-interface' const networkInterface = createNetworkInterface({ - uri: config.graphql.url, + uri: '/graphql', }) -export default new ApolloClient({ +const client = new ApolloClient({ networkInterface }) ``` From 8d5a82690a0f9b0e7da888a82a2b319bbe634a56 Mon Sep 17 00:00:00 2001 From: Bojan Hribernik Date: Tue, 15 Nov 2016 02:26:14 +0100 Subject: [PATCH 2/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b34262..7016904 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # apollo-upload-network-interface -UploadNetworkInterface for Apollo GraphQL Client +UploadNetworkInterface for Apollo GraphQL Client. Adds support for `multipart/form-data` requests. Used together with [graphql-server-express-upload](https://github.com/HriBB/graphql-server-express-upload) and __graphql-server-koa-upload__ (coming soon). ## Usage From a90962bf1a8d949873f92220a10d45fc0849b0cf Mon Sep 17 00:00:00 2001 From: Bojan Hribernik Date: Tue, 15 Nov 2016 02:43:07 +0100 Subject: [PATCH 3/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7016904..69dad17 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # apollo-upload-network-interface -UploadNetworkInterface for Apollo GraphQL Client. Adds support for `multipart/form-data` requests. Used together with [graphql-server-express-upload](https://github.com/HriBB/graphql-server-express-upload) and __graphql-server-koa-upload__ (coming soon). +UploadNetworkInterface for Apollo GraphQL Client. Adds support for `multipart/form-data` requests. Used together with [graphql-server-express-upload](https://github.com/HriBB/graphql-server-express-upload) and [graphql-server-koa-upload](https://github.com/HriBB/graphql-server-koa-upload) (coming soon). ## Usage From 93dd4ef2110e74ea58593aa28275c77655c07a2c Mon Sep 17 00:00:00 2001 From: Bojan Hribernik Date: Thu, 17 Nov 2016 12:21:11 +0100 Subject: [PATCH 4/8] fix(UploadNetworkInterface): Try to fix published library --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 69dad17..e1d7de6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # apollo-upload-network-interface -UploadNetworkInterface for Apollo GraphQL Client. Adds support for `multipart/form-data` requests. Used together with [graphql-server-express-upload](https://github.com/HriBB/graphql-server-express-upload) and [graphql-server-koa-upload](https://github.com/HriBB/graphql-server-koa-upload) (coming soon). + +UploadNetworkInterface for Apollo GraphQL Client. Adds support for `multipart/form-data` requests. + +Used together with [graphql-server-express-upload](https://github.com/HriBB/graphql-server-express-upload) and [graphql-server-koa-upload](https://github.com/HriBB/graphql-server-koa-upload) (coming soon). ## Usage From 8d10a41b3495cf492ef0b8925d9cae12bc8c4ec4 Mon Sep 17 00:00:00 2001 From: Bojan Hribernik Date: Thu, 17 Nov 2016 12:28:50 +0100 Subject: [PATCH 5/8] fix(.npmignore): Add .npmignore --- .npmignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..114ac0b --- /dev/null +++ b/.npmignore @@ -0,0 +1,7 @@ +.DS_Store +*.log +src +test +examples +coverage +node_modules From cd803a823c765f89e6686e24bb5f0fa8241b3416 Mon Sep 17 00:00:00 2001 From: Bojan Hribernik Date: Thu, 17 Nov 2016 12:34:37 +0100 Subject: [PATCH 6/8] fix(package.json): Add lib to package.json files --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 257e84c..1264d8f 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,9 @@ "semantic-release": "semantic-release pre && npm publish && semantic-release post", "test": "mocha --compilers js:babel-core/register ./test/test.js" }, + "files": [ + "lib" + ], "repository": { "type": "git", "url": "https://github.com/HriBB/apollo-upload-network-interface.git" From 27b866bc059dac47ac2b10ba6b161d5b7c83407b Mon Sep 17 00:00:00 2001 From: Bojan Hribernik Date: Thu, 17 Nov 2016 12:43:23 +0100 Subject: [PATCH 7/8] fix(.gitignore): semantic-release wont publish lib folder --- .gitignore | 42 +++++------------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index 10d0bf3..8bc9167 100644 --- a/.gitignore +++ b/.gitignore @@ -1,39 +1,7 @@ -lib - -# Logs -logs +node_modules *.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul +.DS_Store +lib coverage - -# nyc test coverage -.nyc_output - -# 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 directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional REPL history -.node_repl_history +.idea +npm-debug.log From 14942b477c93042bfcfbd00691d714a75ae4f1cf Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Thu, 8 Dec 2016 16:28:28 +0100 Subject: [PATCH 8/8] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1d7de6..80b2329 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ UploadNetworkInterface for Apollo GraphQL Client. Adds support for `multipart/fo Used together with [graphql-server-express-upload](https://github.com/HriBB/graphql-server-express-upload) and [graphql-server-koa-upload](https://github.com/HriBB/graphql-server-koa-upload) (coming soon). +_Any help is appreciated!_ + ## Usage ``` @@ -21,4 +23,5 @@ const client = new ApolloClient({ ## TODO -- [ ] Add some tests +- [ ] Add tests +- [ ] Convert to typescript