-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (47 loc) · 1.44 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
.PHONY: go/install/tools
go/install/tools:
@docker compose run --rm go make install/tools
.PHONY: go/generate/models
go/generate/models:
@docker compose run --rm go make generate/models
.PHONY: go/generate/server
go/generate/server:
@cp openapi/openapi.yaml go/openapi.yaml
@docker compose run --rm go make generate/server
@rm -f go/openapi.yaml
.PHONY: go/test
go/test:
@docker compose run --rm go make test
.PHONY: go/lint
go/lint:
@docker compose run --rm go make lint
.PHONY: go/lint/fix
go/lint/fix:
@docker compose run --rm go make lint/fix
.PHONY: typescript/generate/client
typescript/generate/client:
@openapi-generator-cli generate -i openapi/openapi.yaml -g typescript-fetch -o typescript/client
.PHONY: typescript/generate/client/old
typescript/generate/client/old:
@cp openapi/openapi.yaml typescript/openapi.yaml
@cd typescript && npm run generate-client
@cd ..
@rm -f typescript/openapi.yaml
.PHONY: typescript/lint
typescript/lint:
@docker compose run --rm typescript npm run lint
.PHONY: typescript/lint/fix
typescript/lint/fix:
@docker compose run --rm typescript npm run lint --fix
.PHONY: typescript/format
typescript/format:
@docker compose run --rm typescript npm run format
.PHONY: ruby/test
ruby/test:
@docker compose run --rm ruby bundle exec rspec
.PHONY: ruby/lint
ruby/lint:
@docker compose run --rm ruby bundle exec rubocop
.PHONY: ruby/lint/fix
ruby/lint/fix:
@docker compose run --rm ruby bundle exec rubocop --fix