forked from tilt-dev/tilt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoast.yml
49 lines (47 loc) · 1.44 KB
/
toast.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
image: gcr.io/windmill-public-containers/tilt-toast@sha256:481cd7eb12dc5b82ea5f6832b2895f914a6b21621dbb122ea5290ae73bb0d1b3
tasks:
webview-proto:
input_paths:
- pkg/webview/log.proto
- pkg/webview/view.proto
output_paths:
- pkg/webview/log.pb.go
- pkg/webview/view.pb.go
- pkg/webview/view.swagger.json
command: |
set -euo pipefail
mkdir -p web/src
protoc \
-I. \
-I/usr/include \
-I"$(go env GOPATH)"/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:. \
--swagger_out=logtostderr=true:. \
--go_out=plugins=grpc,paths=source_relative:. \
pkg/webview/*.proto
goimports -local github.com/tilt-dev/tilt -w pkg/webview/*.pb.go
proto-ts:
dependencies:
- webview-proto
input_paths:
- pkg/webview/view.swagger.json
output_paths:
- web/src/view.d.ts
command: |
set -euo pipefail
swagger-to-ts pkg/webview/view.swagger.json --camelcase --wrapper "declare namespace Proto" --output web/src/view.d.ts
wire:
location: /go/src/github.com/tilt-dev/tilt
input_paths:
- assets
- cmd
- integration
- internal
- pkg
- web/web.go
- vendor
- Makefile
output_paths:
- ./internal/cli/wire_gen.go
- ./internal/engine/wire_gen.go
command: wire ./internal/engine && wire ./internal/cli && make goimports