-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjustfile
More file actions
28 lines (19 loc) · 785 Bytes
/
justfile
File metadata and controls
28 lines (19 loc) · 785 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
export CGO_ENABLED := "0"
build-server: build-proto
go build -o ./bin/ent-server github.com/google/ent/cmd/ent-server
run-server: build-server
./bin/ent-server -config=ent-server.toml
build-api:
go build -o ./bin/ent-api github.com/google/ent/cmd/ent-api
run-api: build-api
./bin/ent-api -config=ent-api.toml
build-web:
go build -o ./bin/ent-web github.com/google/ent/cmd/ent-web
run-web: build-web
./bin/ent-web -config=ent-web.toml
build-proto:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative proto/*.proto
install-cli:
go build -o ./bin/ent ./cmd/ent
test-cli: install-cli
./bin/ent get --digest=sha2-256:fba3120c26c61a92490736f9afa329faed0117bdb6e579011039dc4e34071507 --out=./.test