forked from gemwalletcom/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
78 lines (56 loc) · 1.66 KB
/
justfile
File metadata and controls
78 lines (56 loc) · 1.66 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
72
73
74
75
76
77
78
list:
just --list
build:
cargo build
build-gemstone:
just gemstone build
build-ios:
just gemstone build-ios
install: install-typeshare install-postgres install-diesel
install-rust:
@echo Install Rust
@which rustup &>/dev/null || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@source ~/.cargo/env
@rustc --version
install-typeshare:
@echo Install typeshare-cli
cargo install typeshare-cli@1.13.2
install-postgres:
brew install libpq postgresql@15
brew link postgresql@15
export LDFLAGS="-L/opt/homebrew/opt/libpq/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libpq/include"
install-diesel:
@echo Install Diesel
cargo install diesel_cli --no-default-features --features postgres --version 2.2.4 --force
test-workspace:
cargo test --all-features --lib --workspace --quiet
test-all:
cargo test --all-features --lib --all
test CRATE:
cargo test --all-features --package {{CRATE}}
format:
cargo fmt -q --all
fix:
@cargo clippy --fix --workspace --all-targets --allow-dirty
lint:
@cargo clippy --version
cargo clippy -- -D warnings
unused:
cargo install cargo-machete
cargo machete
bloat:
cargo install cargo-bloat --no-default-features
cargo bloat --release --crates
migrate:
diesel migration run
localize:
@sh scripts/localize.sh core crates/localizer/i18n
setup-services:
docker-compose up -d redis postgres clickhouse meilisearch rabbitmq
generate-ts-primitives:
@typeshare ./crates/primitives --lang=typescript --output-file=primitives.ts 1>/dev/null 2>&1
outdated:
@cargo install cargo-edit --quiet
cargo upgrade -i --dry-run
mod gemstone