-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
71 lines (61 loc) · 1.45 KB
/
Makefile
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
test: gomodtidy
go test ./...
build: gomodtidy
go test ./...
make -C cli build
release:
go test ./...
make -C cli build
make -C cli github-upload
release-local:
make gomodtidy
go test ./...
git pull
git push
make -C cli build
make -C cli github-upload
releaseOther:
make -C cli github-otherpkgs-release
exGithubDoc:
go run examples/githubdoc/main.go
exMadebygpt:
go run examples/madebygpt/main.go
exRefactoring:
go run examples/refactoring/main.go
exTesting:
go run examples/testing/main.go
install:
go install ./cli
rm -rf /home/vscode/go/bin/tzap
mv /home/vscode/go/bin/cli /home/vscode/go/bin/tzap
gomodtidy:
go mod tidy
cd pkg/tzapaction && go mod tidy
cd pkg/connectors/openaiconnector && go mod tidy
cd pkg/tzapconnect && go mod tidy
cd examples && go mod tidy
cd cli && go mod tidy
go work sync
ts-build:
cd ts && npm run build
wasm:
cd cli/wasm && GOOS=js GOARCH=wasm go build -o tzap.wasm
wasml:
npx live-server cli/wasm
.PHONY: release
proto:
go install \
google.golang.org/protobuf/cmd/[email protected]
go install \
google.golang.org/grpc/cmd/[email protected]
protoc \
-I pkg/tzapaction/proto \
--go_out=pkg/tzapaction/ --go_opt=paths=import \
tzap.proto prompt.proto search.proto refactor.proto edit.proto implement.proto common.proto
docu:
cd documentation && npm start
dockerbuild:
docker build --no-cache -t tzapio/tzap .
dockerpush:
docker build --no-cache -t tzapio/tzap .
docker push tzapio/tzap