From 0cca437b65417c6066bc6b76e7458bf9d96ef70c Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Wed, 14 Mar 2018 11:26:02 -0700 Subject: [PATCH] Update doc as well --- net/grpc/gateway/examples/echo/tutorial.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/net/grpc/gateway/examples/echo/tutorial.md b/net/grpc/gateway/examples/echo/tutorial.md index fdfaf90..c67400e 100644 --- a/net/grpc/gateway/examples/echo/tutorial.md +++ b/net/grpc/gateway/examples/echo/tutorial.md @@ -118,14 +118,15 @@ that can be used in the browser, using the [Closure compiler][] ```sh $ cd ~/grpc-web -$ ./third_party/closure-library/closure/bin/build/closurebuilder.py \ - --root=./javascript \ - --root=./net \ - --root=./third_party/closure-library \ - --root=./third_party/protobuf/js \ - --namespace="proto.grpc.gateway.testing.EchoServiceClient" \ - --output_mode=compiled \ - --compiler_jar=./closure-compiler.jar > compiled.js +$ java \ + -jar ./closure-compiler.jar \ + --js ./javascript \ + --js ./net \ + --js ./third_party/closure-library \ + --js ./third_party/protobuf/js \ + --entry_point=goog:proto.grpc.gateway.testing.EchoServiceClient \ + --dependency_mode=STRICT \ + --js_output_file compiled.js ``` You can add as many `--root` parameters as you like so that the Closure