forked from mechanismHQ/bns-x
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscripts.yaml
69 lines (57 loc) · 1.78 KB
/
scripts.yaml
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
scripts:
clarigen:
cmd: ../deno-clarigen/cli.ts
allow:
- all
coverage:
cmd:
- clarinet test --coverage
- genhtml -o coverage/html coverage.lcov
chainhook-test:
cmd:
- vr integration-setup
- pnpm integration-test
- docker-compose down
# - docker-compose up -d
# - sleep 10
# - pnpm --filter indexer test:migrate
# - pnpm --filter indexer test:server & clarinet test --chainhooks chainhooks/testing.chainhook.yaml tests/chainhooks_test.ts
integration-setup:
cmd:
- docker-compose up -d
- sleep 3
- pnpm --filter indexer test:migrate
- echo -n > indexer/tmp/log.txt
check:
pll:
- deno check tests/*.ts
- deno check dscripts/*.ts
- deno check src/*.ts
- clarinet check
- pnpm run -r typecheck
codegen:
cmd:
- deno run -A dscripts/testnet-contracts.ts
- deno run -A dscripts/wrapper-js.ts
integrate:
cmd:
- cp /dev/null indexer/mocks/nft.txt
- cp /dev/null indexer/mocks/prints.txt
- vr codegen
- mkdir -p tmp/devnet
- clarinet integrate -d
lt:
pll:
- NEXT_PUBLIC_APP_URL="https://dots.loca.lt" NEXT_PUBLIC_NODE_URL="https://dotsnode.loca.lt" pnpm --filter web dev
- pnpm r scripts/lt.ts
web: pnpm --filter web dev
tunnel-prod: NEXT_PUBLIC_APP_URL="https://dots.loca.lt" pnpm --filter web dev
lt-app:
cmd: NEXT_PUBLIC_APP_URL="https://dots.loca.lt" NEXT_PUBLIC_NODE_URL="https://dotsnode.loca.lt" pnpm --filter web dev
# cmd: NEXT_PUBLIC_NODE_URL="https://dotsnode.loca.lt" pnpm --filter web dev
tunnel: pnpm r scripts/lt.ts
bootstrap:
desc: Deploy contracts and run setup contract calls
cmd:
- clarinet deployments apply --devnet
- pnpm r scripts/bootstrap.ts