Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (47 loc) · 1.54 KB
/
Copy pathMakefile
File metadata and controls
58 lines (47 loc) · 1.54 KB
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
.PHONY: dev dev-all dev-web dev-receiver dev-cli build build-receiver build-cli test test-full lint clean
# Development
dev:
mprocs --config mprocs-dev.yaml
dev-web:
pnpm --filter web dev
dev-receiver:
@set -a && . ./.env.local && set +a && export MAIL_INGEST_ADDR="$${MAIL_INGEST_ADDR:-127.0.0.1:3002}" && cd apps/receiver-rs && $$HOME/.cargo/bin/cargo run
dev-cli:
cd apps/cli-rs && cargo run -- $(ARGS)
# Build
build:
mkdir -p dist
pnpm build
cd apps/receiver-rs && $$HOME/.cargo/bin/cargo build --release && cp target/release/webhooks-receiver ../../dist/receiver
cd apps/cli-rs && cargo build --release && cp target/release/whk ../../dist/whk
build-receiver:
mkdir -p dist
cd apps/receiver-rs && $$HOME/.cargo/bin/cargo build --release && cp target/release/webhooks-receiver ../../dist/receiver
build-cli:
cd apps/cli-rs && cargo build --release
# Test
test:
pnpm test
cd apps/receiver-rs && $$HOME/.cargo/bin/cargo test
cd apps/mx-rs && $$HOME/.cargo/bin/cargo test
cd apps/cli-rs && cargo test
test-full:
pnpm typecheck
pnpm build
$(MAKE) test
cd apps/web && pnpm test:integration
cd apps/web && PLAYWRIGHT_USE_PROD_SERVER=1 pnpm test:e2e
# Lint
lint:
cd apps/receiver-rs && $$HOME/.cargo/bin/cargo clippy -- -D warnings
cd apps/mx-rs && $$HOME/.cargo/bin/cargo clippy --all-targets -- -D warnings
cd apps/cli-rs && cargo clippy -- -D warnings
# Clean
clean:
rm -rf dist
rm -rf apps/web/.next
rm -rf node_modules
rm -rf apps/web/node_modules
rm -rf packages/sdk/node_modules
rm -rf apps/receiver-rs/target
rm -rf apps/mx-rs/target