-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (40 loc) · 1.12 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
checkout:
@git checkout package.json
@git checkout yarn.lock
# --
# INSTALL
# ---------
berry:
@corepack enable
@yarn init -2 -w
@yarn set version stable
@make checkout
@echo '🧸✨ [APP] Initialized yarn@berry ✨'
init:
@yarn unlink && yarn link && yarn
@echo '🧸✨ [APP] Workpaces Initialized ✨'
# --
# BUILD
# ---------
gen-openapi:
@chmod a+x ./packages/api-client/scripts/* && chmod a+x ./packages/app/src/open-api && cd ./packages/api-client/ && make gen-openapi
@echo '🧸✨ [ Finished ]: ✨ Generating OpenAPI Specs...'
# --
# BOOT
# ---------
boot-server:
@chmod a+x ./packages/api-client/scripts/* && cd ./packages/api-client/ && make boot-server
@echo '🧸✨ [ Finished ]: ✨ Booting Api-Client-Server...'
open-cypress:
@cd ./middleware/cypress/ && sh ./scripts/open-cypress-e2e-test.sh
@echo '🧸✨ [ Finished ]: ✨ Booting Api-Client-Server... '
boot-swagger:
@cd ./middleware/swagger/ && sh ./scripts/boot-swagger.sh
@echo '🧸✨ [ Finished ]: ✨ Booting SwaggerUI... '
# --
# shell shorthands
# ---------
envthis:
@head -n 1 ./packages/app/src/.env
envs:
@cat ./packages/app/src/.env