Add node.js gen scripts

This commit is contained in:
Nex
2020-03-14 21:48:59 +08:00
parent cfe8dd42e3
commit 45081f759e
7 changed files with 36 additions and 6 deletions

View File

@@ -12,6 +12,10 @@
go get -u google.golang.org/grpc
go get -u github.com/golang/protobuf/protoc-gen-go
```
- Node.js
```bash
npm install -g grpc-tools
```
- Web
```bash
git clone https://github.com/grpc/grpc-web
@@ -27,4 +31,4 @@
### 编译
- 在本项目打开控制台,或者切换工作路径到本项目
- 执行 `./gen-{{platform}}`
- 执行 `./scripts/gen-{{platform}}`