forked from Yelp/beans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (33 loc) · 803 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
define GetFromPkg
$(shell node -p "require('./frontend/lib/config.json').$(1)")
endef
PROJECT := $(call GetFromPkg,PROJECT)
.PHONY: all
all: development
.PHONY: deploy
deploy: deploy_services deploy_dispatch
.PHONY: development
development:
make -C frontend/ development
make -C api/ development
.PHONY: build
build:
make -C frontend/
make -C api/
.PHONY: test
test:
make -C frontend/ test
make -C api/ test
.PHONY: deploy_services
deploy_services: build
gcloud app deploy frontend/app.yaml api/app.yaml --project $(PROJECT) --version 1
.PHONY: deploy_dispatch
deploy_dispatch:
gcloud app deploy dispatch.yaml --project $(PROJECT)
.PHONY: deploy_cron
deploy_cron:
gcloud app deploy api/cron.yaml --project $(PROJECT)
.PHONY: clean
clean:
make -C frontend/ clean
make -C api/ clean