-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
60 lines (46 loc) · 1.31 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
.DEFAULT_GOAL := all
.PHONY: all
all: prepare build test
.PHONY: prepare
prepare:
npm run clean-install
.PHONY: build
build:
npm run build
.PHONY: test
test:
npm run test
.PHONY: watch
watch:
npm run watch
.PHONY: graphql_generate
graphql_generate:
npm run graphql:generate
.PHONY: bump_version
bump_version:
npm version "$(bump)"
.PHONY: all_in_container
all_in_container:
bash ./scripts/run-in-container.sh make all
.PHONY: prepare_in_container
prepare_in_container:
bash ./scripts/run-in-container.sh make prepare
.PHONY: build_in_container
build_in_container:
bash ./scripts/run-in-container.sh make build
.PHONY: test_in_container
test_in_container:
bash ./scripts/run-in-container.sh make test
.PHONY: watch_in_container
watch_in_container:
bash ./scripts/run-in-container.sh make watch
.PHONY: graphql_generate_in_container
graphql_generate_in_container:
bash ./scripts/run-in-container.sh make graphql_generate
.PHONY: export_pontoon_graphql_schema
export_pontoon_graphql_schema:
CONTAINER_IMAGE='docker.io/library/python:3.11-bookworm' bash ./scripts/run-in-container.sh 'bash ./scripts/export-pontoon-graphql-schema.sh ./src/pontoon.graphql'
make graphql_generate_in_container
.PHONY: bump_version_in_container
bump_version_in_container:
bash ./scripts/run-in-container.sh make bump_version bump="$(bump)"