forked from StellarCheckMate/Checkmate-Escrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 1.2 KB
/
Copy pathMakefile
File metadata and controls
45 lines (34 loc) · 1.2 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
SHELL := /bin/bash
.DEFAULT_GOAL := help
.PHONY: help build test lint fmt deploy-testnet frontend-dev frontend-test doc-conformance doc-conformance-test
help:
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@echo " build Build Soroban contracts"
@echo " test Run Rust tests"
@echo " lint Run Rust lints via cargo clippy"
@echo " fmt Format Rust code"
@echo " deploy-testnet Deploy contracts to Stellar testnet"
@echo " frontend-dev Start the frontend development server"
@echo " frontend-test Run frontend tests"
@echo " doc-conformance Check docs against contract source (see docs/doc-conformance.md)"
@echo " doc-conformance-test Run the doc-conformance checker's own self-tests"
build:
bash scripts/build.sh
test:
bash scripts/test.sh
lint:
cargo clippy --all-targets --all-features -- -D warnings
fmt:
cargo fmt --all
deploy-testnet:
bash scripts/deploy_testnet.sh
frontend-dev:
cd frontend && npm ci && npm run dev
frontend-test:
cd frontend && npm ci && npm test
doc-conformance:
bash scripts/check_doc_conformance.sh
doc-conformance-test:
bash scripts/test_doc_conformance.sh