-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 1.95 KB
/
Copy pathMakefile
File metadata and controls
51 lines (34 loc) · 1.95 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
# Mappers Protocol — Developer Commands
# Usage: make <target>
.PHONY: install build test oracle-install oracle-dev e2e clean
# ─── SETUP ───────────────────────────────────────────────────────────────────
install:
yarn install
oracle-install:
cd oracle && npm install
setup: install oracle-install
@echo "✅ All dependencies installed"
# ─── CONTRACT ────────────────────────────────────────────────────────────────
build:
anchor build
# ─── TESTS ───────────────────────────────────────────────────────────────────
test: build
anchor test --provider.cluster localnet
test-devnet: build
anchor test --provider.cluster devnet
# ─── ORACLE ──────────────────────────────────────────────────────────────────
oracle-dev:
cd oracle && npm run dev
oracle-build:
cd oracle && npm run build
# ─── END-TO-END ──────────────────────────────────────────────────────────────
# Run oracle first in a separate terminal: make oracle-dev
e2e:
ts-node scripts/e2e-devnet.ts
# ─── CLEAN ───────────────────────────────────────────────────────────────────
clean:
rm -rf target
rm -rf node_modules
rm -rf oracle/node_modules
rm -rf oracle/dist
rm -rf .anchor