-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
29 lines (29 loc) · 1.21 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"name": "grpc-web-echo-test",
"dependencies": {
"google-protobuf": "^3.21.2",
"grpc-web": "^1.4.2",
"postinstall": "^0.8.0"
},
"devDependencies": {
"browserify": "^17.0.0",
"concurrently": "^7.6.0",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"version": "1.0.0",
"main": "client.js",
"scripts": {
"postinstall": "cd node-server && npm i",
"start": "concurrently --kill-others \"npm run server\" \"npm run proxy\"",
"compile_proto": "call \"protoc-3.20.1-win64/bin/protoc.exe\" -I=. echo.proto --js_out=import_style=commonjs:. --plugin=protoc-gen-grpc-web=protoc-gen-grpc-web-1.4.2-windows-x86_64.exe --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.",
"build_client": "npx webpack",
"make": "npm run compile_proto && npm run build_client",
"server": "node node-server/server.js",
"proxy": "call \"grpcweb-proxy/grpcwebproxy-v0.15.0-win64.exe\" --run_tls_server=false --allow_all_origins --backend_addr=localhost:9090 --backend_tls_noverify",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Nick Winger",
"license": "MIT",
"description": "Full self contained working example of the grcpweb-echo example from grpc.io"
}