-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
97 lines (70 loc) · 2.03 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
SHELL := /usr/bin/env bash
# Setup
.PHONY: auto-all
auto-all: setup
.PHONY: setup
setup:
@source development/scripts/install-requirements.sh
@source development/scripts/setup-project.sh
@source development/scripts/ensure-credentials.sh
.PHONY: ensure-credentials
ensure-credentials:
@source development/scripts/ensure-credentials.sh
# Angular Client
.PHONY: angular
angular:
@source development/scripts/start-angular.sh
.PHONY: angular-ssr
angular-ssr:
@source development/scripts/start-angular-ssr.sh
# Next.js Client
.PHONY: next
next:
@source development/scripts/start-next.sh
.PHONY: next-prod
next-prod:
@source development/scripts/start-next-prod.sh
# Development
.PHONY: server
server:
@source development/scripts/start-server.sh
.PHONY: test-all
test-all: lint check-dependencies test test-integration
.PHONY: lint
lint:
@source development/scripts/lint.sh
.PHONY: check-dependencies
check-dependencies:
@source development/scripts/check-dependencies.sh
.PHONY: test
test:
@source development/scripts/test.sh
.PHONY: test-integration
test-integration:
@source development/scripts/test-integration.sh
# Deployment
.PHONY: init-infrastructure
init-infrastructure: ensure-credentials
@source infrastructure/scripts/init-infrastructure.sh
.PHONY: plan-infrastructure
plan-infrastructure: ensure-credentials
@source infrastructure/scripts/plan-infrastructure.sh
.PHONY: update-infrastructure
update-infrastructure: ensure-credentials plan-infrastructure
@source infrastructure/scripts/update-infrastructure.sh
.PHONY: destroy-infrastructure
destroy-infrastructure: ensure-credentials
@source infrastructure/scripts/destroy-infrastructure.sh
.PHONY: deploy
deploy: nextjs-image
@source infrastructure/scripts/deploy.sh
.PHONY: nextjs-image
nextjs-image:
@source development/scripts/nextjs-image.sh
# Others
.PHONY: create-terraform-bucket
create-terraform-bucket:
@source infrastructure/scripts/create-terraform-bucket.sh
.PHONY: upgrade-bazel-npm-deps
upgrade-bazel-npm-deps:
@source development/scripts/upgrade-bazel-npm-deps.sh