From 2af89e49cb4ad5b5e30cd4c447acaca1d0c44843 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Thu, 1 Oct 2015 11:54:00 -0700 Subject: [PATCH] Moved gRPC node package root to repo root, made it depend on grpc.gyp --- src/node/.istanbul.yml => .istanbul.yml | 0 binding.gyp | 66 ++++++++++++ grpc.gyp | 8 +- src/node/package.json => package.json | 38 ++++--- src/node/LICENSE | 28 ----- src/node/README.md | 36 ------- src/node/binding.gyp | 100 ------------------ src/node/index.js | 3 +- src/node/interop/empty.proto | 43 -------- src/node/interop/interop_client.js | 4 +- src/node/interop/interop_server.js | 4 +- src/node/interop/messages.proto | 132 ------------------------ src/node/interop/test.proto | 72 ------------- src/node/src/client.js | 4 +- src/node/src/server.js | 2 +- src/node/test/call_test.js | 2 +- src/node/test/channel_test.js | 2 +- src/node/test/constant_test.js | 2 +- src/node/test/end_to_end_test.js | 2 +- src/node/test/server_test.js | 2 +- src/node/test/surface_test.js | 2 +- templates/grpc.gyp.template | 8 +- 22 files changed, 117 insertions(+), 443 deletions(-) rename src/node/.istanbul.yml => .istanbul.yml (100%) create mode 100644 binding.gyp rename src/node/package.json => package.json (59%) delete mode 100644 src/node/LICENSE delete mode 100644 src/node/binding.gyp delete mode 100644 src/node/interop/empty.proto delete mode 100644 src/node/interop/messages.proto delete mode 100644 src/node/interop/test.proto diff --git a/src/node/.istanbul.yml b/.istanbul.yml similarity index 100% rename from src/node/.istanbul.yml rename to .istanbul.yml diff --git a/binding.gyp b/binding.gyp new file mode 100644 index 00000000000..1cab4bb80a7 --- /dev/null +++ b/binding.gyp @@ -0,0 +1,66 @@ +{ + "variables" : { + 'config': '/include LDFLAGS=-L/lib npm install [grpc] -``` - ## TESTING To run the test suite, simply run `npm test` in the install location. @@ -110,7 +78,3 @@ ServerCredentials ``` An object with factory methods for creating credential objects for servers. - -[homebrew]:http://brew.sh -[gRPC install script]:https://raw.githubusercontent.com/grpc/homebrew-grpc/master/scripts/install -[Debian jessie-backports]:http://backports.debian.org/Instructions/ diff --git a/src/node/binding.gyp b/src/node/binding.gyp deleted file mode 100644 index 247719e9813..00000000000 --- a/src/node/binding.gyp +++ /dev/null @@ -1,100 +0,0 @@ -{ - "variables" : { - 'config': '/dev/null 2>&1 && echo true || echo false)' - }, - 'conditions': [ - ['config=="gcov"', { - 'cflags': [ - '-ftest-coverage', - '-fprofile-arcs', - '-O0' - ], - 'ldflags': [ - '-ftest-coverage', - '-fprofile-arcs' - ] - } - ], - ['pkg_config_grpc == "true"', { - 'link_settings': { - 'libraries': [ - '