-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (31 loc) · 960 Bytes
/
Makefile
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
re: down up build process
process: migrate
@node -r dotenv/config lib/processor.js
build:
@npm run build
build-processor-image:
@docker build . --target processor -t squid-processor
build-query-node-image:
@docker build . --target query-node -t query-node
build-images: build-processor-image build-query-node-image
serve:
@npx squid-graphql-server --subscriptions
generate:
@npx squid-typeorm-migration generate
migrate:
@npx squid-typeorm-migration apply
codegen:
@npx squid-typeorm-codegen
typegen:
@npx squid-substrate-typegen typegen.json
metadata-explorer:
@npx squid-substrate-metadata-explorer --out ./metadata/$(spec).json --chain $(chain)
up:
@docker-compose up -d
down:
@docker-compose down -v
archive:
@docker-compose -f ./archive/docker-compose.yml up -d
archive-down:
@docker-compose -f ./archive/docker-compose.yml down -v
.PHONY: build serve process migrate codegen typegen up down archive generate archive-down