37 lines
674 B
Makefile
37 lines
674 B
Makefile
.PHONY: all build test fmt vet migrate run client-get client-test client-analyze client-build check
|
|
|
|
all: check
|
|
|
|
build:
|
|
go build ./...
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
fmt:
|
|
gofmt -w $$(find apps internal -name '*.go' -type f)
|
|
|
|
vet:
|
|
go vet ./...
|
|
|
|
migrate:
|
|
go run ./apps/migrate/cmd/ariadne-migrate
|
|
|
|
run:
|
|
go run ./apps/server/cmd/ariadne
|
|
|
|
client-get:
|
|
cd apps/client && flutter pub get --enforce-lockfile
|
|
|
|
client-test:
|
|
cd apps/client && flutter test
|
|
|
|
client-analyze:
|
|
cd apps/client && flutter analyze
|
|
|
|
client-build:
|
|
cd apps/client && flutter build web --release
|
|
|
|
client-test client-analyze client-build: client-get
|
|
|
|
check: build test vet client-test client-analyze client-build
|