Skip to content

Commit

Permalink
Merge pull request #214 from stanley-cheung/master
Browse files Browse the repository at this point in the history
npm package is now live
  • Loading branch information
stanley-cheung committed Aug 2, 2018
2 parents f79e108 + 108fdba commit 3a38b08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
7 changes: 0 additions & 7 deletions net/grpc/gateway/docker/commonjs_client_example/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ FROM grpc-web:prereqs

ARG EXAMPLE_DIR=/github/grpc-web/net/grpc/gateway/examples/echo

RUN cd /github/grpc-web/packages/grpc-web && \
rm -rf node_modules && \
npm install && \
npm run build && \
npm link

RUN protoc -I=$EXAMPLE_DIR echo.proto \
--plugin=protoc-gen-grpc-web=\
/github/grpc-web/javascript/net/grpc/web/protoc-gen-grpc-web \
Expand All @@ -33,7 +27,6 @@ $EXAMPLE_DIR/commonjs-example
RUN cd $EXAMPLE_DIR/commonjs-example && \
rm -rf node_modules && \
npm install && \
npm link grpc-web && \
./node_modules/.bin/browserify client.js > out.js

EXPOSE 8081
Expand Down
7 changes: 5 additions & 2 deletions net/grpc/gateway/examples/echo/commonjs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
"version": "0.1.0",
"description": "gRPC-Web CommonJS client example",
"license": "Apache-2.0",
"dependencies": {
"google-protobuf": "3",
"grpc-web": "^0.2.0"
},
"devDependencies": {
"browserify": "16",
"google-protobuf": "3"
"browserify": "16"
}
}
2 changes: 1 addition & 1 deletion packages/grpc-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grpc-web",
"version": "0.1.0",
"version": "0.2.0",
"description": "gRPC web runtime",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 3a38b08

Please sign in to comment.