-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (53 loc) · 1.39 KB
/
Makefile
File metadata and controls
71 lines (53 loc) · 1.39 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
59
60
61
62
63
64
65
66
67
68
69
70
71
.PHONY: check build test integration bump-major bump-minor bump-patch
default: build
lint: check
check:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo deny check
# cargo install cargo-machete
cargo machete
# cargo install hawkeye
hawkeye check
# cargo install typos-cli
typos
build-frontend:
rm -rf cli/frontend
mkdir -p cli/frontend
cd frontend && \
if [ ! -d node_modules ]; then pnpm install; fi && \
pnpm run build && cp -rf build ../cli/frontend/
run:
make build-frontend
cargo run
dev-run:
@echo "Starting development mode..."
@echo "1. Make sure to run 'cd frontend && pnpm run dev' in another terminal"
@echo "2. Frontend will be available at http://localhost:3000"
@echo "3. BendSQL CLI will proxy to frontend dev server"
BENDSQL_DEV_MODE=1 cargo run
build:
make build-frontend
cargo build --release
test:
cargo test --all --all-features --lib -- --nocapture
integration:
make -C tests
integration-down:
make -C tests down
integration-core:
make -C tests test-core
integration-driver:
make -C tests test-driver
integration-bendsql:
make -C tests test-bendsql
integration-bindings-python:
make -C tests test-bindings-python
integration-bindings-nodejs:
make -C tests test-bindings-nodejs
bump-major:
./scripts/bump_version.py major
bump-minor:
./scripts/bump_version.py minor
bump-patch:
./scripts/bump_version.py patch