-
Notifications
You must be signed in to change notification settings - Fork 0
/
go.sh
63 lines (51 loc) · 1.35 KB
/
go.sh
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
#!/bin/bash
export DEPLOY_ENVIRONMENT=$1
echo "Installing build dependencies .."
# npm i
# npx --no-install yarn || exit
echo "Building 'o-utils' .."
cd packages/o-utils || exit
npx --no-install tsc || exit
cd .. || exit
echo "Building 'o-events' .."
rm -r -f o-events/dist
cd o-events || exit
npx --no-install tsc || exit
cd .. || exit
echo "Building 'o-interfaces' .."
cd o-interfaces || exit
npx --no-install tsc || exit
cd .. || exit
echo "Building 'o-process' .."
cd o-process || exit
npx --no-install tsc || exit
cd .. || exit
echo "Building 'o-circles' .."
cd o-circles || exit
npx --no-install tsc || exit
cd ../.. || exit
echo "Generating graphql types for shared/api/data"
echo "* api"
cd shell/src/shared/api/data
npx --no-install graphql-codegen
echo "* api"
npx --no-install graphql-codegen
cd ../../../../..
echo "Generating graphql types for dapps/o-passport"
#echo "* api"
#cd shell/src/dapps/o-passport/data/api
#npx graphql-codegen
echo "* auth"
cd shell/src/dapps/o-passport/data/auth
npx --no-install graphql-codegen
# cd ../../../../../..
# echo "Generating graphql types for dapps/o-contacts"
# echo "* api"
# cd shell/src/dapps/o-contacts/data/api
# npx graphql-codegen
cd ../../../../../..
echo "Generating graphql types for dapps/o-banking"
echo "* api"
cd shell/src/dapps/o-banking/data/api
npx --no-install graphql-codegen
cd ../../../../../..