forked from SafetyCulture/grpc-web-devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 955 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 955 Bytes
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
30
31
32
33
34
.PHONY: build
build:
yarn && yarn build
run:
yarn && yarn start
example-build-frontend:
protoc -I./example --js_out=import_style=commonjs:example/client \
--grpc-web_out=import_style=commonjs,mode=grpcwebtext:example/client example/*.proto
example-build-backend:
protoc -I./example --go_out=plugins=grpc:example/server example/*.proto
example-build: example-build-backend example-build-frontend
example-frontend-up: example-build-frontend
npm run start --prefix example/client
example-envoy:
docker build -t grpcweb-devtools-example/envoy -f ./example/envoy.Dockerfile ./example
example-server:
docker build -t grpcweb-devtools-example/server ./example/server
example-client:
docker build -t grpcweb-devtools-example/client ./example/client
example-up: example-server example-envoy example-server example-client
docker-compose -f ./example/docker-compose.yml up -d;
example-down:
docker-compose -f ./example/docker-compose.yml down