-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
26 lines (21 loc) · 864 Bytes
/
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
default: format check
static:
RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-gnu --release --bin trail
format:
pnpm -r format; \
cargo +nightly fmt; \
dart format client/trailbase-dart/ examples/blog/flutter/; \
txtpbfmt `find . -regex ".*.textproto"`; \
dotnet format client/trailbase-dotnet/src; \
dotnet format client/trailbase-dotnet/test; \
poetry -C client/trailbase-py run black --config pyproject.toml .
check:
pnpm -r check; \
cargo clippy --workspace --no-deps; \
dart analyze client/trailbase-dart examples/blog/flutter; \
dotnet format client/trailbase-dotnet/src --verify-no-changes; \
dotnet format client/trailbase-dotnet/test --verify-no-changes; \
poetry -C client/trailbase-py run pyright
docker:
docker build . -t trailbase/trailbase
.PHONY: default format check static