-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (28 loc) · 1.11 KB
/
Makefile
File metadata and controls
41 lines (28 loc) · 1.11 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
include vars.env
nightly = +$(subst ",,${RUST_TOOLCHAIN_NIGHTLY})
clippy-%:
cargo $(nightly) clippy --manifest-path $(subst -,/,$*)/Cargo.toml
format-%:
cargo $(nightly) fmt --check --manifest-path $(subst -,/,$*)/Cargo.toml
format-%-fix:
cargo $(nightly) fmt --manifest-path $(subst -,/,$*)/Cargo.toml
features-%:
cargo $(nightly) hack check --feature-powerset --all-targets --manifest-path $(subst -,/,$*)/Cargo.toml
publish-%:
./scripts/publish-rust.sh $(subst -,/,$*)
lint-docs-%:
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo $(nightly) doc --all-features --no-deps --manifest-path $(subst -,/,$*)/Cargo.toml
lint-features-%:
cargo $(nightly) hack check --feature-powerset --all-targets --manifest-path $(subst -,/,$*)/Cargo.toml
test-%:
cargo $(nightly) test --manifest-path $(subst -,/,$*)/Cargo.toml
generate-clients:
pnpm codama run --all $(ARGS)
format-js:
cd ./clients/js && pnpm install && pnpm format
lint-js:
cd ./clients/js && pnpm install && pnpm lint
test-js:
./scripts/restart-test-validator.sh
cd ./clients/js && pnpm install && pnpm build && pnpm test
./scripts/stop-test-validator.sh