-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (53 loc) · 1.29 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# A single command to start API server and mock server
example-up:
@docker compose -f docker/compose.yaml up -d
@(cd example && npm install)
@(cd example && npm run build)
@(cd example && npm run dev)
.PHONY: example-up
# Start Rio and its dependencies (SQL)
rio-up:
@docker compose -f docker/compose.yaml up -d
.PHONY: rio-up
# Cleanup test environment
rio-down:
@docker compose -f docker/compose.yaml down
.PHONY: rio-down
# Show docker compose logs
rio-logs:
@docker compose -f docker/compose.yaml logs
.PHONY: rio-logs
# Start API server to simulate test target API
server-up:
@(cd example && npm install)
@(cd example && npm run build)
@(cd example && npm run dev)
.PHONY: server-up
# Run example integration tests
example-test:
@(cd example && npm install)
@(cd example && npm test)
.PHONY: example-test
sdk-install:
@(cd sdk && npm install)
.PHONY: sdk-install
sdk-build:
@(cd sdk && rm -R -f dist)
@(cd sdk && npm run build)
.PHONY: sdk-build
# Run test for SDK
sdk-test:
@(cd sdk && npm test)
.PHONY: sdk-test
sdk-format:
@(cd sdk && npm run format)
.PHONY: sdk-format
sdk-lint:
@(cd sdk && npm run lint)
.PHONY: sdk-lint
sdk-publish:
@echo "Publishing ..."
@(cd sdk && rm -R -f dist)
@(cd sdk && npm run build)
@(cd sdk && npx npm-publish --token $(NPM_TOKEN))
.PHONY: sdk-publish